Re: [gtk-list] Re: Error linking on Solaris:
- From: Gert Scholten <gs2 dds nl>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Error linking on Solaris:
- Date: Sat, 6 Feb 1999 21:19:26 +0100 (CET)
On Sat, 6 Feb 1999, Drazen Kacar wrote:
:Gert Scholten wrote:
:Hmm... There is no -R/usr/local/public/lib. That means you'll have to
:have LD_LIBRARY_PATH set to that directory. Other than that, everything
:seems fine.
:
:> I use:
:> gcc `/net/public/bin/gtk-config --libs` -o gMOO *.o
:> for linking
:
:That still doesn't tell us which link editor you use. Try
:gcc -v `/net/public/bin/gtk-config --libs` -o gMOO *.o
:and look for /usr/ccs/ld or /some/other/directory/ld
Ok, big output:
$ gcc -v `/net/public/bin/gtk-config --libs` -o gMOO *.o
Reading specs from /opt/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2/2.7.2/specs
gcc version 2.7.2
/usr/ccs/bin/ld -V -R/usr/openwin/lib -Y P,/usr/ccs/lib:/usr/lib -Qy -o gMOO
/opt/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2/2.7.2/crt1.o
/opt/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2/2.7.2/crti.o
/usr/ccs/lib/values-Xa.o
/opt/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2/2.7.2/crtbegin.o
-L/usr/local/public/lib -L/usr/openwin/lib
-L/opt/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2/2.7.2 -L/usr/ccs/bin
-L/usr/ccs/lib -L/opt/gcc-2.7.2/lib -lgtk -lgdk -lgmodule -lglib -ldl -lintl
-lXext -lX11 -lsocket -lnsl -lw -lm config.o dialog.o dialogs.o editor.o
handy.o help.o history.o main.o msg.o syntaxhl.o window.o world.o worlds.o
-lgcc -lc -lgcc /opt/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2/2.7.2/crtend.o
/opt/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2/2.7.2/crtn.o
ld: Software Generation Utilities - Solaris/ELF (3.0)
Undefined first referenced
symbol in file
dx_flush_batch /usr/openwin/lib/libXext.so
ld: fatal: Symbol referencing errors. No output written to gMOO
:> I don't know how to get a version number of the solaris system ... there isn't
:> a /proc/version file ....
:
:uname -a
Done:
$ uname -a
SunOS galjas 5.5.1 Generic_103640-19 sun4u sparc SUNW,Ultra-2
Hope this helps you help me
Gert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]