This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
undefined reference to `errno' g++3.3
- From: gabriolli at ibest dot com dot br
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 30 Jul 2003 15:14:09 -0300
- Subject: undefined reference to `errno' g++3.3
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.