I am pretty new to programming on UNIX and started to work on Solaris
2.4 with the GNU gcc compiler. I installed the binaries of GCC version
2.7.1 for solaris 2.4 - worked fine... Created some simple programs in c
and compiled them - still worked fine.
After this I wanted to write a simple program using gethostbyaddress,
but after compiling, the linker returns the following error: ld: fatal:
Symbol referencing errors.
# gcc /tmp/test.c
Undefined first referenced
symbol in file
I supose the linker cannot find the libraries containing the right
Can anyone tell me were to find the right libraries. Do I have to setup
LD_LIBRARY_PATH. If I have a library, is there a way to know what's
inside ? Were can I find information how to setup the gcc correctly,
include headers, libraries, etc...
Tried it out on Linux too, but there it is working fine. Of course on
the Linux, the gcc is already built-in if you check the option when