gusten.gren wrote:
> When i try to compile api_examp.c I get the following result.
>
> gustengrens-power-mac-g5:Programmering gustengren$ cc -o test
> -L/sw/lib/libploticus.a -lz -lm -L/usr/X11/lib/libpng.la
> -L/usr/X11/lib/libX11.la api_examp.c
I think your compile line may be wrong.
Try doing
$ cc -o test /sw/lib/libploticus.a -lz -lm /usr/X11/lib/libpng.la
/usr/X11/lib/libX11.la api_examp.c
(is really libpng.a into X11 folder?)
or
$ cc -o test -Llibploticus.a -lploticus -lz -lm -L/usr/X11/lib -lpng
-lX11 api_examp.c