Re: gtk program compilation error.



Le Fri, Jun 06, 2003, à 12:28:47PM +0530, Viveka Nathan K a écrit:
>    Thanks Noah and Cyrille..
> 
>    Now I installed gtk+-2.0 and compiled my program.
>    Now it says the error as
> 
>    /tmp/ccNUHBNN.o: In function `main':
>    /home/smilax2/vivekanathan/gtk/helloworld.c:56: undefined reference to
>    `g_type_check_instance_cast'

What arguments did you give to ld ?

did you pass `pkg-config --libs gtk+-2.0` ?


>  Before this, it said errors on some header files as 'No such file or directory'.
>  I copied those files in the location as it needed.  Now I dont know what to do
>  for the above problem.  Can you help me ?

What were your CFLAGS ? Did they include `pkg-config --cflags gtk+-2.0` ?

	-- Cyrille

-- 



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