X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: undefined reference to `__imp___iob' Date: Tue, 26 Jun 2007 13:52:01 -0400 Message-ID: In-Reply-To: References: <46813D13 DOT 60EE664D AT dessent DOT net> From: "Frederich, Eric P21322" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l5QHqGpT021792 > From: Igor Peshansky [mailto:pechtcha AT cs DOT nyu DOT edu] > Sent: Tuesday, June 26, 2007 1:31 PM > To: Frederich, Eric P21322 > Cc: cygwin AT cygwin DOT 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/