This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Failed to build tcl8.1


--- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]