Compilation on Solaris



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!
--
Peter                           peterz at rin dot ru



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