Re: Plot graph using C

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

 



Jai Sharma ha scritto:
> Dear Friends
> 
> After a one day search I found libploticus.
> 
> but when i compile this program. I got errors:
> 
> root@linux:/data/programming/c/chart# cc main.c -lploticus -lpng -lz
> -lm -o api_exampmain.c: In function 'main':
> main.c:16: warning: incompatible implicit declaration of built-in
> function 'exit'
> /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libploticus.so:
> undefined reference to `XDrawString'
> /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libploticus.so:
> undefined reference to `XLoadFont'
[cut]
> Plz help to solve this problem.

You are missing the -lgd linker flag...

> 
> 
> 
> Thanks and Regards
> Jai
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux