Re: [gtk-list] Re: Error linking on Solaris:



On Sat, 6 Feb 1999, Drazen Kacar wrote:

:Gert Scholten wrote:
:> I got this error while linking my program under Solaris:
:> 
:> bash-2.00$ make
:> gcc `/net/public/bin/gtk-config --libs` -o gMOO *.o
:> Undefined                       first referenced
:>  symbol                             in file
:> dx_flush_batch                      /usr/openwin/lib/libXext.so
:> ld: fatal: Symbol referencing errors. No output written to gMOO
:> *** Error code 1   
:> make: Fatal error: Command failed for target `gMOO'
:
:Which version of Solaris? Are you using Sun's or GNU linker? What is
:the output of `gtk-config --libs'?

Here it comes:
$ /net/public/bin/gtk-config --libs
-L/usr/local/public/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk
-lgmodule -lglib -ldl -lintl -lXext -lX11 -lsocket -lnsl -lw -lm

I use:
gcc `/net/public/bin/gtk-config --libs` -o gMOO *.o
for linking

$ gcc -v
Reading specs from /opt/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2/2.7.2/specs
gcc version 2.7.2

I don't know how to get a version number of the solaris system ... there isn't
a /proc/version file ....


  Gert



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]