undefined reference



chatiman writes:
What am I doing wrong ?

What am I doing wrong ?

You should put the libraries last on the gcc command line, i.e.:

gcc `pkg-config gtk+-2.0 --cflags` f1.c f2.c ... `pkg-config gtk+-2.0 --libs` 

Doesn't gcc on Linux require this, or where have you picked up the
incorrect habit?

--tml





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