Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <19990826122436.26112.rocketmail@web110.yahoomail.com> Date: Thu, 26 Aug 1999 05:24:36 -0700 (PDT) From: Earnie Boyd Reply-To: earnie_boyd AT yahoo DOT com Subject: Re: Failed to build tcl8.1 To: Thomas Kowatsch , Cygwin List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Thomas Kowatsch 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 Newbies, please visit (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 AT sourceware DOT cygnus DOT com