Re: undefined reference to `errno' g++3.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux