This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]