- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been trying to link the psplot graphics library when compiling some fortran code, using the command
>g77 box+.for -o box+.exe -lpsplot
but I keep getting the message
>ld: library not found for -lpsplot
I have set the PATH to include the usr/local/lib directory where the libpsplot.a file resides, so I can't fathom what the problem is. Any ideas out there - am I missing something ridiculously simple?
I am new to MAC OS X, but have previously run this code with no problem under DOS/Windows, so am somewhat frustrated ...
grateful for any help
Richard
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
G77 is obsolete. This is the Intel Fortran Forum.
PATH is for locating executable files. You need to use the option -L /usr/local/lib to have the linker search for libraries in that location. Alternatively, provide a symlink to libpsplot.a in the expected place.
PATH is for locating executable files. You need to use the option -L /usr/local/lib to have the linker search for libraries in that location. Alternatively, provide a symlink to libpsplot.a in the expected place.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page