Hi,
I’m porting a library to QNX RTP and it relies on the TCP/IP socket layer
pretty heavily. I put a test app together and when I link with:
qcc app.o -Vgcc_ntox86 -Bstatic -O3 -fomit_frame_pointer -l
/x86/lib/libsocket.a -l /homerico/mylib.a -M -o phtrace
I get undefined references from my library to:
socket
bind
getsockname
getsockopt
gethostbyaddr
gethostbyname
I built my library by doing:
cc -c file1.c file2.c -Vgcc_ntox86
ar -r mylib.b *.o
What am I missing here?
TIA,
Richard.
Richard Copeman <richard.copeman@lauterbach.co.uk> wrote:
Hi,
I’m porting a library to QNX RTP and it relies on the TCP/IP socket layer
pretty heavily. I put a test app together and when I link with:
qcc app.o -Vgcc_ntox86 -Bstatic -O3 -fomit_frame_pointer -l
/x86/lib/libsocket.a -l /homerico/mylib.a -M -o phtrace
Change the link order of “mylib.a” and “libsocket.a”
-xtang
I get undefined references from my library to:
socket
bind
getsockname
getsockopt
gethostbyaddr
gethostbyname
I built my library by doing:
cc -c file1.c file2.c -Vgcc_ntox86
ar -r mylib.b *.o
What am I missing here?
TIA,
Richard.
Completely OT: welcome back…
On Wed, 5 Jun 2002 15:16:38 +0100, “Richard Copeman” <richard.copeman@lauterbach.co.uk> wrote:
Hi,
I’m porting a library to QNX RTP and it relies on the TCP/IP socket layer
pretty heavily. I put a test app together and when I link with:
qcc app.o -Vgcc_ntox86 -Bstatic -O3 -fomit_frame_pointer -l
/x86/lib/libsocket.a -l /homerico/mylib.a -M -o phtrace
I get undefined references from my library to:
socket
bind
getsockname
getsockopt
gethostbyaddr
gethostbyname
I built my library by doing:
cc -c file1.c file2.c -Vgcc_ntox86
ar -r mylib.b *.o
What am I missing here?
TIA,
Richard.
Hi Alex,
Good to be back.
So many new names and a few old, familiar ones.
Richard.
“Alex Cellarius” <acellarius@yahoo.com> wrote in message
news:1103_1023301685@pentiumii…
Completely OT: welcome back…
On Wed, 5 Jun 2002 15:16:38 +0100, “Richard Copeman”
richard.copeman@lauterbach.co.uk> > wrote:
Hi,
I’m porting a library to QNX RTP and it relies on the TCP/IP socket
layer
pretty heavily. I put a test app together and when I link with:
qcc app.o -Vgcc_ntox86 -Bstatic -O3 -fomit_frame_pointer -l
/x86/lib/libsocket.a -l /homerico/mylib.a -M -o phtrace
I get undefined references from my library to:
socket
bind
getsockname
getsockopt
gethostbyaddr
gethostbyname
I built my library by doing:
cc -c file1.c file2.c -Vgcc_ntox86
ar -r mylib.b *.o
What am I missing here?
TIA,
Richard.
\