delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/04/07:40:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <CDDB93E84A8DD411B01900D0B78278400B3ED2FA@IE10-SAHARA>
From: "Manik, Raina (IE10)" <Manik DOT Raina AT honeywell DOT com>
To: cygwin AT cygwin DOT com
Subject: RE: gcc 3.1.1 for cygwin generates __imp_symbol
Date: Mon, 4 Nov 2002 06:34:27 -0600
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gA4CefZ04222

All,

I discovered the reason for this. It's because of
__atribute__ ((dllimport)) in the function definition.

Hence this has nothing to do with GCC for cygwin and
it was something in my code which was doing this ...

Before someone wakes up to flame me, for lameness (i'm
definitely not giving anyone ideas :) let me retract my
email. 

Thanks for your time,
Best of luck,
Manik Raina
	

>   -----Original Message-----
>   From: Manik, Raina (IE10) 
>   Sent: Monday, November 04, 2002 4:45 PM
>   To: 'cygwin AT cygwin DOT com'
>   Subject: gcc 3.1.1 for cygwin generates __imp_symbol
>   
>   
>   Hi all,
>   
>   	I'm using gcc 3.1.1 on cygwin (i686) and
>   	i'm doing something to the tune of 
>   
>   	gcc -c foo.o $(CFLAGS) foo.c
>   
>   	and all external references in foo.c are prefixed
>   	with __imp.
>         ^^^^^^^^^^^
>   	i.e nm foo.o shows something like ...
>   
>   	U	__imp_external_reference 
>   
>   	for a function external_reference(). It's desirable
>   	for me to make generate _external_reference() instead
>   	since i'm having trouble linking this .o file link
>   	with other libBAR.a files generated using GNU tools.
>   
>   	The gcc flags i'm using are ...
>   
>   	-c -fno-exceptions -fno-rtti -march=pentium 
>   	-falign-functions=64 -Wa,--no-warn  -finline-functions -O3 
>   
>   	Please let me know if there is a way of supressing gcc
>   	from generating the __imp prefix for all externally referenced
>   	symbols. 
>   
>   	I looked at the gcc documentation and came it came up 
>   with nothing
>   	on this. Am i missing something or is it just my gray 
>   cells fizzing
>   	out ?
>   
>   	Appreciate any help/pointers/[M's in RTFM's] on this ;)
>   
>   ----  >8 ----
>   (forgive me if this question has been beaten to death on
>   this list already, i searched the archives already and could
>   not find anything on this... so i mailed). 
>   PS: Hi Mumit Khan !
>   ----    ----
>   
>   Wir müssen wissen, wir werden wissen (We must know, we 
>   shall know).  - David Hilbert
>   

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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