Hi everyone,
Im trying to run PGPLOT with my gfortran codes, under UBUNTU 8.10. I have installed the software following this:
Everything seemed to be ok, as the final './pgdemo1' worked fine.
Then I tryed to compile the code put in this thread:
I found no problem with the command: 'gfortran test.f95 /usr/lib/libpng.so -o test -L/usr/X11R6/lib -lX11 -L/usr/lib -lpgplot'
And here is my trouble. When I try to compile the code test.f95 from the folder test_folder I write: gfortran -o TEST test.f95, and the bash answer me:
/tmp/ccY7pvbc.o: In function `MAIN__':
plot.f95.text+0x115): undefined reference to `pgopen_'
plot.f95.text+0x159): undefined reference to `pgenv_'
plot.f95.text+0x18d): undefined reference to `pglab_'
plot.f95.text+0x1ad): undefined reference to `pgline_'
plot.f95.text+0x1cf): undefined reference to `pgpt_'
plot.f95.text+0x1d4): undefined reference to `pgclos_'
Im afraid I maybe didnt quite catch what I suppose to do...
Anybody can help me?
Thanks in advance
Im trying to run PGPLOT with my gfortran codes, under UBUNTU 8.10. I have installed the software following this:
Everything seemed to be ok, as the final './pgdemo1' worked fine.
Then I tryed to compile the code put in this thread:
I found no problem with the command: 'gfortran test.f95 /usr/lib/libpng.so -o test -L/usr/X11R6/lib -lX11 -L/usr/lib -lpgplot'
And here is my trouble. When I try to compile the code test.f95 from the folder test_folder I write: gfortran -o TEST test.f95, and the bash answer me:
/tmp/ccY7pvbc.o: In function `MAIN__':
plot.f95.text+0x115): undefined reference to `pgopen_'
plot.f95.text+0x159): undefined reference to `pgenv_'
plot.f95.text+0x18d): undefined reference to `pglab_'
plot.f95.text+0x1ad): undefined reference to `pgline_'
plot.f95.text+0x1cf): undefined reference to `pgpt_'
plot.f95.text+0x1d4): undefined reference to `pgclos_'
Im afraid I maybe didnt quite catch what I suppose to do...
Anybody can help me?
Thanks in advance