* gcc 3.1.1 for cygwin generates __imp_symbol
@ 2002-11-04 3:17 Manik, Raina (IE10)
0 siblings, 0 replies; 2+ messages in thread
From: Manik, Raina (IE10) @ 2002-11-04 3:17 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: gcc 3.1.1 for cygwin generates __imp_symbol
@ 2002-11-04 4:40 Manik, Raina (IE10)
0 siblings, 0 replies; 2+ messages in thread
From: Manik, Raina (IE10) @ 2002-11-04 4:40 UTC (permalink / raw)
To: cygwin
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@cygwin.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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-04 12:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-04 3:17 gcc 3.1.1 for cygwin generates __imp_symbol Manik, Raina (IE10)
2002-11-04 4:40 Manik, Raina (IE10)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).