undefined reference to `errno' g++3.3

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

 



Hi, 
 
I'm tying to compile this simple code and link it with two others libs.  
#include "navigator.h" 
extern int errno; 
int main(){ 
        Navigator nav; 
         return -1; 
} 
 
I'm doing: 
 
$> 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' 
collect2: ld returned 1 exit status 
make: ** [navXR400] Erro 1 
 
I can check for the symbols: 
 
$> mnt lib/libXR4000.so | grep errno 
         U errno 
         U h_errno 
 
I have already read about many similar problems, but I don't know what is wrong. 
Could you help-me? 
 
I'm using (gcc) g++ version 3.3 on SuSE Linux 8.2. 
I have tested this in a SuSE 8.0 with g++2.95.3 and I get any problem. 
 
Thank you for your attention, 
gabriel. 
 
PS: Please excuse my bad english 
 

_________________________________________________
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