This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Failed to build tcl8.1
- To: Thomas Kowatsch <Thomas.Kowatsch@stest.ch>, Cygwin List <cygwin@sourceware.cygnus.com>
- Subject: Re: Failed to build tcl8.1
- From: Earnie Boyd <earnie_boyd@yahoo.com>
- Date: Thu, 26 Aug 1999 05:24:36 -0700 (PDT)
- Reply-To: earnie_boyd@yahoo.com
--- Thomas Kowatsch <Thomas.Kowatsch@stest.ch> wrote:
-8<-
> Ok this was obviously the wrong approach linking with -ltcl81 and stub
> lib together and was the reason for the core to happen. I now can run
> it ok.
>
> But a another little problem occured. There is no console input after
> I started wish81.exe. When I start the cygwish80.exe coming with
> b20.1 a console window pops up. I examined code again and found the
> problem to be in tk8.1/win/winMain.c. There are two entry points in
> there, one is main() and the other is WinMain(). If main() is called
> (what is obviously done by cygwin) then before Tk_Main() is called
> a variable consoleRequired is set to FALSE. If I start wish81.exe in
> gdb and set this variable to TRUE before call to Tk_Main() a
> console window pops up. In WinMain() the consoleRequired is TRUE
> before call to Tk_Main(). My question is now, what to do:
>
> 1.) change code in main() for cygwin to set consoleRequired to TRUE
> 2.) Find a possibility to get WinMain be called (Any advise)
>
> Can anybody help me on this?
If you add the -mwindows switch to the link step the WinMain function would be
called upon startup instead of the main function.
===
Earnie Boyd <mailto:earnie_boyd@yahoo.com>
Newbies, please visit
<http://www.freeyellow.com/members5/gw32/index.html>
(If you respond to the list, then please don't cc me)
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com