delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/26/14:05:38

X-Spam-Check-By: sourceware.org
Date: Tue, 26 Jun 2007 14:05:11 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Frederich, Eric P21322" <eric DOT frederich AT siemens DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: undefined reference to `__imp___iob'
In-Reply-To: <C6EEDB0EB45A56439F73B1D23E39694A35C453@USORL02P702.ww007.siemens.net>
Message-ID: <Pine.GSO.4.63.0706261403320.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> <C6EEDB0EB45A56439F73B1D23E39694A35C453 AT USORL02P702 DOT ww007 DOT siemens DOT net>
MIME-Version: 1.0
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

On Tue, 26 Jun 2007, Frederich, Eric P21322 wrote:

> > From: Igor Peshansky [mailto:pechtcha AT XX DOT XXX DOT XXX]
> > Sent: Tuesday, June 26, 2007 1:31 PM
> > To: Frederich, Eric P21322
> > Cc: cygwin AT XXXXXX DOT XXX

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/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019