Hi eveyone,
So i'm having some problems with pgplot on my mac book pro (10.6.8)...
I recently updated fink, after doing so i can't compile any fortran code which calls pgplot. I'm using the gfortran compiler.
It gives me this error:
I'm using these flags:
pgplot is installed correctly, because I can run the demos, so there is some problem with the linking between fortran and pgplot.
As you can probably tell, i'm very much a novice with this sort of thing, so I really don't have a clue what is going on, or if i've even provided the information people need to help me.
Any help or advice would be greatly appreciated!
Thanks!
So i'm having some problems with pgplot on my mac book pro (10.6.8)...
I recently updated fink, after doing so i can't compile any fortran code which calls pgplot. I'm using the gfortran compiler.
It gives me this error:
Code:
Undefined symbols:
"_png_set_longjmp_fn", referenced from:
_write_image_file in libpgplot.a(pndriv.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [ejec_hist] Error 1
I'm using these flags:
Code:
PG_FLAGS = -L/usr/X11R6/lib -lX11 -Wl,-framework -Wl,Foundation -L/sw/lib -lpng -lz -laquaterm -L/sw/lib/pgplot -lpgplot -lgfortran
pgplot is installed correctly, because I can run the demos, so there is some problem with the linking between fortran and pgplot.
As you can probably tell, i'm very much a novice with this sort of thing, so I really don't have a clue what is going on, or if i've even provided the information people need to help me.
Any help or advice would be greatly appreciated!
Thanks!