This is the mail archive of the cygwin@cygwin.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: Perl/Tk with patches no long compiles with CygWin v1.3.1



--- Neil Lunn <neillunn@gunz.com.au> wrote: > > -----Original Message-----
> > From: Christopher Faylor [mailto:cgf@redhat.com]
> > Sent: Friday, April 27, 2001 1:01 PM
> > To: 'cygwin@cygwin.com'
> > Subject: Re: Perl/Tk with patches no long compiles with CygWin v1.3.1
> 
> > 
> > ???  I haven't heard of these instances.  Is there a pointer 
> > to someone complaining
> > about this with the new binutils?  I'm not sure how it is 
> > possible for ld
> > not to find /usr/lib/w32api with my patches.
> 
> Chris,
> 
> Sorry I just go this message direct this morning. I'll attach some output
> for reference.
> 
> Note (probably harmless): No library found for -lcomdlg32
> Note (probably harmless): No library found for -lgdi32
> 
> rm -f blib/arch/auto/Tk/Tk.dll
> LD_RUN_PATH="" gcc -shared -o blib/arch/auto/Tk/Tk.dll  -L/usr/local/lib
> Tk.o chnGlue.o evtGlue.o objGlue.o tixGlue.o tkGlue.o tkGlue_f.o
> tkWin32Dll.o pTk/tkres.o  pTk/libpTk.a
> /usr/local/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a  
> pTk/libpTk.a(tkWinWm.o)(.text+0x562e):tkWinWm.c: undefined reference to
> `SelectPalette@12'
> pTk/libpTk.a(tkWinWm.o)(.text+0x563a):tkWinWm.c: undefined reference to
> `RealizePalette@4'
> pTk/libpTk.a(tkWinWm.o)(.text+0x5674):tkWinWm.c: undefined reference to
> `SelectPalette@12'

When you need window GUI (as TK does) add -mwindows switch.  This will add in
-lgdi32 and -lcomdlg32. Or you could put these libs on the command line
yourself.
Recent releases of tk (8.3.3) also need libimm.a. 
Danny

_____________________________________________________________________________
http://store.yahoo.com.au - Yahoo! Store
- It's time you had your business online!

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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