Re:




Actuall the documentation says that

g++ simple.cc -o simple `pkg-config gtkmm-2.4 --cflags --libs`

is the proper way to compile, it is in the documentation that comes with the installation

gtkmm/share/doc/gtkmm-2.4/tutorial/html/chapter-basics.html#sec-basics-simple-example

----- Original Message -----

From: tweenk pl gmail com

Sent: 02/09/13 03:06 PM

To: Doesnt Stop

Subject: Re:

Â
2013/2/9 Doesnt Stop <DoesntStop mail com>: 
> g++.exe `pkg-config gtkmm-2.4 --cflags`     `pkg-config gtkmm-2.4 --libs` -o dist/Debug/MinGW-Windows/welcome_1  build/Debug/MinGW-Windows/welcome.o 

This is wrong. The library flags should always come after the object 
files. The GCC linker will not resolve back-references, e.g. 
references to files that were earlier on the commandline, so you have 
to put the library flags after the object file. 

Regards, Krzysztof

Â



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