From: <dan...@ya...> - 2001-03-06 06:52:29
|
--- Jeff Sturm <jef...@co...> wrote: > "Butt, Vaughn A." wrote: > > gcc -mconsole -o mine.exe mine.o foo.lib > > There's your problem. gcc cannot link to a .lib file. You must have > a .dll to > start with, then create a stub library (.a), then gcc can use it. > Recent versions of ld (2.10.xx) such as the one that can be downloaded from mingw file release page at SourceForge can link to .lib files (at least the ones supplied in MS PSDK). If you are using ld 2.10, the problem is elsewhere. Try using nm to see (1) if nm can grok the lib and (2) if so, if the symbol has other than "C" decoration. danny _____________________________________________________________________________ http://store.yahoo.com.au - Yahoo! Store - The fastest, easiest way to open an online store. |