* undefined reference to 'errno'
@ 2003-12-05 15:44 Fernando Líbio
2003-12-05 15:52 ` Eljay Love-Jensen
0 siblings, 1 reply; 4+ messages in thread
From: Fernando Líbio @ 2003-12-05 15:44 UTC (permalink / raw)
To: gcc-help
Greetings,
I can compile alphasim-1.0 perfectly on RedHat 7.3, but it just does not
compile on Suse 9.0.
First I got some strange warnings, but then I installed the package
compat-gcc-7.3-2.96.118.rpm and tryied to compile it with gcc296, but
I'm getting an undefined reference to 'errno'. There is
#include <errno.h>
extern int errno
in the file with the error. I just don't know what to do anymore... any
help would be very appreciated.
Thanks in advance.
Fernando LÃbio
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: undefined reference to 'errno'
2003-12-05 15:44 undefined reference to 'errno' Fernando Líbio
@ 2003-12-05 15:52 ` Eljay Love-Jensen
0 siblings, 0 replies; 4+ messages in thread
From: Eljay Love-Jensen @ 2003-12-05 15:52 UTC (permalink / raw)
To: Fernando Líbio, gcc-help
Hi Fernando,
The code snippet...
#include <errno.h>
extern int errno;
...the "extern int errno;" is incorrect. It should not be there.
On some systems, especially those that support threads, errno is usually a macro to mapping to a function call.
HTH
--Eljay
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: undefined reference to 'errno'
2003-12-04 22:28 Fernando Líbio
@ 2003-12-04 22:46 ` Falk Hueffner
0 siblings, 0 replies; 4+ messages in thread
From: Falk Hueffner @ 2003-12-04 22:46 UTC (permalink / raw)
To: Fernando Líbio; +Cc: gcc-help
Fernando LÃbio <f_libio@yahoo.com.br> writes:
> I'm getting an undefined reference to 'errno'. There is
>
>
> #include <errno.h>
> extern int errno
The second line is bogus, remove it.
--
Falk
^ permalink raw reply [flat|nested] 4+ messages in thread
* undefined reference to 'errno'
@ 2003-12-04 22:28 Fernando Líbio
2003-12-04 22:46 ` Falk Hueffner
0 siblings, 1 reply; 4+ messages in thread
From: Fernando Líbio @ 2003-12-04 22:28 UTC (permalink / raw)
To: gcc-help
Greetings,
I can compile alphasim-1.0 perfectly on RedHat 7.3, but it just does not
compile on Suse 9.0.
First I got some strange warnings, but then I installed the package
compat-gcc-7.3-2.96.118.rpm and tryied to compile it with gcc296, but
I'm getting an undefined reference to 'errno'. There is
#include <errno.h>
extern int errno
in the file with the error. I just don't know what to do anymore... any
help would be very appreciated.
Thanks in advance.
Fernando LÃbio
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-05 15:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05 15:44 undefined reference to 'errno' Fernando Líbio
2003-12-05 15:52 ` Eljay Love-Jensen
-- strict thread matches above, loose matches on Subject: below --
2003-12-04 22:28 Fernando Líbio
2003-12-04 22:46 ` Falk Hueffner
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).