- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I have a program which is written in C and fortran 90. I succeed to compile it and to run it on an alpha Compac machine, using fortran90 and cc from compac. But I 'm trying to do it in another machine with intel fortran ifort and gcc, but I have an error for linking
/usr/bin/ld: cannot find -lUfor
here is the command i use to link:
F90LIBS= -L/opt/intel_fc_80/lib/for_main.o -lUfor -lfor -lFutil -lots3
thank you for your help
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The names of the libraries are quite different between Compaq Fortran and Intel Fortran. libUfor and libfor are Compaq Fortran library names, that's why you can't find them with your existing command.
It might be easier for you to try using "ifort" to link your application. This is not the makefile version, of course, but if you effectively did this:
icc -cmyCfile.c
ifort -c myFfile.f
ifort -o myexe myCfile.o myFfile.o
It (should!) all just work.
- Lorri

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