Re: gtk program compilation error.
- From: Viveka Nathan K <vivek lantana tenet res in>
- To: Cyrille Chepelov <cyrille chepelov org>
- Cc: gtk-i18n-list gnome org
- Subject: Re: gtk program compilation error.
- Date: 06 Jun 2003 14:33:04 +0530
Thanks Cyrille.. Its working now.
I compiled the source previously as
gcc -Wall -g helloworld.c -o helloworld `gtk-config --cflags` `gtk-config --libs`
now, as I did as you told. Its going on and working properly :)
Thank you once again
On Fri, 2003-06-06 at 13:56, Cyrille Chepelov wrote:
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
--
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Viveka Nathan K, DON Lab, IITM, Chennai-36, India. Ph:044-22578904/8353
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
All condemnation of others really condemns ourselves - Swami Vivekananda
|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]