This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: undefined reference to `errno' g++3.3
- From: gabriolli at ibest dot com dot br
- To: gcc-help at gcc dot gnu dot org, Eljay Love-Jensen <eljay at adobe dot com>
- Date: Thu, 31 Jul 2003 10:48:35 -0300
- Subject: Re: undefined reference to `errno' g++3.3
Thanks for your attention, but I got the same error msg:
$>g++ -Wall -g -I./libNavigator/include -I./libXR4000/include -I./utils navXR400.o -o navXR400 -L./lib
./lib/libXR4000.so ./lib/libNavigator.so
./lib/libXR4000.so: undefined reference to `errno'
./lib/libXR4000.so: undefined reference to `h_errno'
gabriel
>>>>>>>>>>>>>>>>>>
Hi Gabriel,
Do not do this:
extern int errno;
Do this instead, for C:
#include <errno.h>
Or this instead, for C++:
#include <cerrno>
HTH,
--Eljay
_________________________________________________
Quer ajudar o Brasil e não sabe como?
AjudaBrasil: http://www.ajudabrasil.org/mail.html.