I’m trying to compile a simple program that uses a member of the libsocket.a
library (connect()). I key “qcc -o mypgm mypgm.c” and get the error message
“/tmp/AAA253420_cc.o: In function ‘main’:
/tmp/AAA253420_cc.o(.text+0x41): undefined reference to ‘connect’”
I figured libsocket.a is not in the linker’s path, however, according to
documentation and the /etc/qcc/gcc_ntox86.conf file, the linker should see
the library because it is in /x86/lib.
Please help, I’m beginning to pull out the little hair I still have left on
my balding old scalp!
I’m trying to compile a simple program that uses a member of the
libsocket.a
library (connect()). I key “qcc -o mypgm mypgm.c” and get the error
message
“/tmp/AAA253420_cc.o: In function ‘main’:
/tmp/AAA253420_cc.o(.text+0x41): undefined reference to ‘connect’”
I figured libsocket.a is not in the linker’s path, however, according to
documentation and the /etc/qcc/gcc_ntox86.conf file, the linker should see
the library because it is in /x86/lib.
Please help, I’m beginning to pull out the little hair I still have left
on
my balding old scalp!
You have to tell qcc to link with the socket library with -lsocks
I’m trying to compile a simple program that uses a member of the
libsocket.a
library (connect()). I key “qcc -o mypgm mypgm.c” and get the error
message
“/tmp/AAA253420_cc.o: In function ‘main’:
/tmp/AAA253420_cc.o(.text+0x41): undefined reference to ‘connect’”
I figured libsocket.a is not in the linker’s path, however, according to
documentation and the /etc/qcc/gcc_ntox86.conf file, the linker should
see
the library because it is in /x86/lib.
Please help, I’m beginning to pull out the little hair I still have left
on
my balding old scalp!
You have to tell qcc to link with the socket library with -lsocks
I’m trying to compile a simple program that uses a member of the
libsocket.a
library (connect()). I key “qcc -o mypgm mypgm.c” and get the error
message
“/tmp/AAA253420_cc.o: In function ‘main’:
/tmp/AAA253420_cc.o(.text+0x41): undefined reference to ‘connect’”
I figured libsocket.a is not in the linker’s path, however, according
to
documentation and the /etc/qcc/gcc_ntox86.conf file, the linker should
see
the library because it is in /x86/lib.
Please help, I’m beginning to pull out the little hair I still have
left
on
my balding old scalp!
You have to tell qcc to link with the socket library with -lsocks