Re: Compiling with Eclipse




2012-07-11 14:51, Rodrigo Nunes skrev:
Forgive my ignorance, but how do I change this in eclipse?
I've tried everything here and I can not solve.
I don't know. I've never used eclipse. Hope someone else knows.

Kjell

Em quarta-feira, 11 de julho de 2012, Kjell Ahlstedt escreveu:
Change
g++ `pkg-config gtkmm-3.0  --libs --cflags` -o "gtkmmdemo"  ./src/gtkmmdemo.o
to
g++ -o "gtkmmdemo"  ./src/gtkmmdemo.o `pkg-config gtkmm-3.0  --libs --cflags`

From the description of gcc, option -l (lowercase l):

It makes a difference where in the command you write this option; the linker
searches and processes libraries and object files in the order they are speci-
fied. Thus, ‘foo.o -lz bar.o’ searches library ‘z’ after file ‘foo.o’ but before
‘bar.o’. If ‘bar.o’ refers to functions in ‘z’, those functions may not be loaded.




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