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

X-Spam-Check-By: sourceware.org
Message-ID: <46815705.734307A5@dessent.net>
Date: Tue, 26 Jun 2007 11:12:21 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: undefined reference to `__imp___iob'
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>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

"Frederich, Eric P21322" wrote:

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

It's not supported, correct.  But using -mno-cygwin is exactly the same
as using MinGW/MSYS, which is why you're suddenly confusing us all by
what you're saying.

> 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

These objects are compiled without -mno-cygwin, so they are Cygwin
objects.

> /mylibraries/libraries/lib/libhdg_win.a(hdg_win.o):hdg_win.c:(.text+0x13
> ): undefined reference to `__imp___iob'

This library is a MinGW library, so this link is doomed to failure.

Brian

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