www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Subject: | RE: undefined reference to `__imp___iob' |
Date: | Tue, 26 Jun 2007 13:52:01 -0400 |
Message-ID: | <C6EEDB0EB45A56439F73B1D23E39694A35C453@USORL02P702.ww007.siemens.net> |
In-Reply-To: | <Pine.GSO.4.63.0706261328360.20185@access1.cims.nyu.edu> |
References: | <C6EEDB0EB45A56439F73B1D23E39694A35C424 AT USORL02P702 DOT ww007 DOT siemens DOT net> <46813D13 DOT 60EE664D AT dessent DOT net> <C6EEDB0EB45A56439F73B1D23E39694A35C441 AT USORL02P702 DOT ww007 DOT siemens DOT net> <Pine DOT GSO DOT 4 DOT 63 DOT 0706261328360 DOT 20185 AT access1 DOT cims DOT nyu DOT edu> |
From: | "Frederich, Eric P21322" <eric DOT frederich AT siemens DOT com> |
To: | <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |