Re: Compilation on Solaris
- From: "Padraig O'Briain" <Padraig Obriain Sun COM>
- To: peterz rin ru
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Compilation on Solaris
- Date: Mon, 25 Apr 2005 13:35:36 +0100
Peter,
This sounds like a Solaris linker question. You do not want the link to
fail because of the unresolved reference. Try using -z nodefs linker
option. ASee man opage for ld(1).
Padraig
Peter Zhelezniakov wrote:
Hi!
Trying to compile a trivial GTK program on Solaris, i get this error:
# cc `pkg-config --cflags gtk+-2.0` -o dl dl.c
Undefined first referenced
symbol in file
g_string_insert_c dl.o
ld: fatal: Symbol referencing errors. No output written to dl
The program is:
#include <gtk/gtk.h>
int main(int argc, char** argv)
{
return 0;
}
I use Sun C 5.3 compiler and GTK 2.4 headers (note that i don't link
against GTK libs, this is intentionally -- my real program uses
dlopen). Gcc compiles the same code without errors.
Did anybody have this problem?
Thanks!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]