Hello Mac OS C-programmers using ploticus
Plotting graphs in C-code-programs. I have downloaded Ploticus via Fink.
My path and library looks lika this.
gustengrens-power-mac-g5:lib gustengren$ pwd
/sw/lib
gustengrens-power-mac-g5:lib gustengren$ ls -la libplot*
-rw-r--r-- 1 root admin 594116 14 Jun 2008 libploticus.2.20.dylib
lrwxr-xr-x 1 root admin 22 18 Maj 06:04 libploticus.2.dylib -> libploticus.2.20.dylib
-rw-r--r-- 1 root admin 1210824 14 Jun 2008 libploticus.a
lrwxr-xr-x 1 root admin 22 18 Maj 05:58 libploticus.dylib -> libploticus.2.20.dylib
gustengrens-power-mac-g5:lib gustengren$
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
api_examp.c: In function `main':
api_examp.c:19: warning: incompatible implicit declaration of built-in function `exit'
Undefined symbols:
"_ploticus_end", referenced from:
_main in ccf1LGnB.o
"_ploticus_execline", referenced from:
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
_main in ccf1LGnB.o
"_ploticus_begin", referenced from:
_main in ccf1LGnB.o
"_ploticus_init", referenced from:
_main in ccf1LGnB.o
"_ploticus_arg", referenced from:
_main in ccf1LGnB.o
"_PL_do_x_button", referenced from:
_main in ccf1LGnB.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
gustengrens-power-mac-g5:Programmering gustengren$
Any one who knows where the ccf1LGnB.o is located. Should I add some more library, In case what.
What is the difference between ploticus2 and ploticus2-nox. I understan that *-nox dont support X11 but does it mean that it contains its own graphics library for screen plots or is it only for data file formats like png.