On Tue, 26 Jun 2007, Frederich, Eric P21322 wrote: > > From: Igor Peshansky [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 26, 2007 1:31 PM > > To: Frederich, Eric P21322 > > Cc: [EMAIL PROTECTED]
Again, <http://cygwin.com/acronyms/#PCYMTNQREAIYR>. Nobody wants more spam. Thanks. > > Subject: RE: undefined reference to `__imp___iob' > > > > > Does everything you say hold true even if I compile with > > > the -mno-cygwin option? > > > > Not everything, but how were we to know you were using -mno-cygwin? > > > > > Apparently I'm confused. I thought that when I compile > > > with -mno-cygwin it was the same as using msys/mingw. > > > > It is, unless you explicitly inlcude a Cygwin header. Please > > provide the exact compiler invocation and the exact errors you get. > > Igor > > I have been trying with and without -mno-cygwin just trying to get > anything to work. > If it (mixing msys/mingw and cygwin libraries) is "not encouraged" or > "not supported", then I just won't do it and I'll either start using > Msys for everything or start keeping two copies of the Windows libraries > around. > > Here is the output of make if this is helpful. Shouldn't matter but > some search and replacing was done. > > gcc -O2 -I/mylibraries/libraries/include -c someProgram.c -o > win/someProgram.o > gcc -O2 -I/mylibraries/libraries/include -c autocad.c -o win/autocad.o > gcc -O2 -I/mylibraries/libraries/include -c diagrams.c -o win/diagrams.o > gcc -O2 -I/mylibraries/libraries/include -c dxf.c -o win/dxf.o > gcc -O2 -I/mylibraries/libraries/include -c graph.c -o win/graph.o > gcc -O2 -I/mylibraries/libraries/include -c heap.c -o win/heap.o > gcc -O2 -I/mylibraries/libraries/include -c sort.c -o win/sort.o > gcc -O2 -I/mylibraries/libraries/include -c swdconn.c -o win/swdconn.o > gcc -O2 -I/mylibraries/libraries/include -c util.c -o win/util.o > gcc -s -static -L/mylibraries/libraries/lib -o win/someProgram.exe > win/someProgram.o win/autocad.o win/diagrams.o win/dxf.o win/graph.o > win/heap.o win/sort.o win/swdconn.o win/util.o -lm -ldxfstd_win -lhdg_win > -lvars_win > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x13): > undefined reference to `__imp___iob' > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x2e): > undefined reference to `__imp___iob' > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x3e): > undefined reference to `__imp___iob' > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x46): > undefined reference to `__filbuf' > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0xdf): > undefined reference to `__imp___iob' > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x118): > undefined reference to `__imp___iob' > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x138): > undefined reference to `__imp___iob' > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x168): > undefined reference to `__imp___iob' > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x192): > undefined reference to `__imp___iob' > /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x1d8): > more undefined references to `__imp___iob' follow > collect2: ld returned 1 exit status > make: *** [someProgram.exe] Error 1 Where exactly are you using -mno-cygwin in the above? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Freedom is just another word for "nothing left to lose"... -- Janis Joplin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/