Hello,
I have managed to compile cc++ 1.9.4 under solaris 2.7. However, when I am trying to link anything at all with libccgnu, I always get the following error:
nfa:~/tmp > g++ mmm.cpp -lccgnu -lnsl -lposix4
Undefined first referenced
symbol in file
gethostname(char *, int) /home/ckotso/lib/libccgnu.so
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
As one can see I also link against libnsl.so (which includes gethostname definition), and I have also tried to build libccgnu with libnsl.so linking (which isn't on by default). The build is ending, but I still can't link anything with libccgnu. Any ideas? I have tried everything I could think of!
Costas
PS: I have also used the -L and -R switches, they made no difference at all.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have managed to compile cc++ 1.9.4 under solaris 2.7. However, when I am trying to link anything at all with libccgnu, I always get the following error:
nfa:~/tmp > g++ mmm.cpp -lccgnu -lnsl -lposix4
Undefined first referenced
symbol in file
gethostname(char *, int) /home/ckotso/lib/libccgnu.so
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
As one can see I also link against libnsl.so (which includes gethostname definition), and I have also tried to build libccgnu with libnsl.so linking (which isn't on by default). The build is ending, but I still can't link anything with libccgnu. Any ideas? I have tried everything I could think of!
Costas
PS: I have also used the -L and -R switches, they made no difference at all.
Fixed a week ago in cvs...
New release is coming...
freddy77