Re: Plot graph using C

[email protected]
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.