This is the mail archive of the cygwin 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]
Other format: [Raw text]

RE: undefined reference to `__imp___iob'


> From: Igor Peshansky [mailto:pechtcha@cs.nyu.edu] 
> Sent: Tuesday, June 26, 2007 1:31 PM
> To: Frederich, Eric P21322
> Cc: cygwin@cygwin.com
> 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+0x11
8): undefined reference to `__imp___iob'
/mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x13
8): undefined reference to `__imp___iob'
/mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x16
8): undefined reference to `__imp___iob'
/mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x19
2): undefined reference to `__imp___iob'
/mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x1d
8): more undefined references to `__imp___iob' follow
collect2: ld returned 1 exit status
make: *** [someProgram.exe] Error 1

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


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