Where do I set linker flags?

Hi,

How do I set the "linker flags" through the Sun Studio 12 IDE?

Am moving a small existing set of GTK/Gnome source C code from Eclipse 3.2.x for Sun Studio 12/Express. (Wish the "Eclipse Importer would work with C code"!)

Checked out the source from CVS, created a C/C++ project with it, and proceeded to configure things. Setting the include directories was straightforward, but I'm not finding ANY reference where to set the linker flags in the quick start, IDE help, via Google, or anything.

Pretty sure it's the linker flags that are the problem, as the errors given when building the project are:

mkdir -p dist/Debug/Sun12-Linux-x86

cc-o dist/Debug/Sun12-Linux-x86/flame-edit build/Debug/Sun12-Linux-x86/callbacks.o build/Debug/Sun12-Linux-x86/backend.o build/Debug/Sun12-Linux-x86/flame-edit.o build/Debug/Sun12-Linux-x86/gui-functions.o

build/Debug/Sun12-Linux-x86/callbacks.o: In function `g_string_append_c_inline':

/usr/include/glib-2.0/glib/gstring.h:131: undefined reference to `g_string_insert_c'

build/Debug/Sun12-Linux-x86/callbacks.o: In function `event_size_allocate_received':

/home/jc/SunStudioProjects/flame-edit/callbacks.c:57: undefined reference to `gtk_widget_get_type'

/home/jc/SunStudioProjects/flame-edit/callbacks.c:57: undefined reference to `g_type_check_instance_cast'

<snip>

Extremely frustrating. :(

Regards and best wishes,

Justin Clift

[1484 byte] By [JustinClifta] at [2007-11-27 8:39:13]
# 1

Heh, wouldn't you know it.

After trying everything I could think of for about 1/2 hour (including adjusting the configuration.xml file directly), I found the answer...

CLEAN the build before trying again. Heh. Silly me. Looks like the makefile isn't regenerated without cleaning the build first.

;->

JustinClifta at 2007-7-12 20:37:05 > top of Java-index,Development Tools,Solaris and Linux Development Tools...