Hello All,
Does anyone know of a way to statically link the socket and nsl libraries into an executable?
I have tried:
g++ -o myfile.out myfile.o -Wl,-Bstatic -lsocket -lnsl
but I get undefined symbol errors for
dclose etc ... I can get it to compile by using:
g++ -ldl -lnsl -o myfile myfile.o -Wl,-Bstatic -lsocket
I would like to statically link all libraries envolved if possible.
Thanks,
Eric
Does anyone know of a way to statically link the socket and nsl libraries into an executable?
I have tried:
g++ -o myfile.out myfile.o -Wl,-Bstatic -lsocket -lnsl
but I get undefined symbol errors for
dclose etc ... I can get it to compile by using:
g++ -ldl -lnsl -o myfile myfile.o -Wl,-Bstatic -lsocket
I would like to statically link all libraries envolved if possible.
Thanks,
Eric