Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: From: "Manik, Raina (IE10)" 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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/