I'm probably doing something enormously stupid, but I'm stumped. I'm new to Xcode and am porting an exisiting Fortran application from Windows to Mac OS X using the Intel Fortran compiler on both. I installed Xcode, moved the code, sorted out the differences between the platforms (mostly getting the DFPORT and IFPORT conditional compilations right) and the compile phase succeeds.
When Xcode trys to link though, it doesn't seem to be finding/using the Intel libraries. I've tried both the dynamic and static settings in the Xcode options. Here's the command to the linker:
Ld "/Users/munroe/Documents/My CVS/ESPlanner_Computation_Engine.HEAD/ESPlanner Executables-Xcode/espbasic/espbasic/build/Debug/espbasic" normal i386
cd "/Users/munroe/Documents/My CVS/ESPlanner_Computation_Engine.HEAD/ESPlanner Executables-Xcode/espbasic/espbasic"
/usr/bin/ifort-10.1-base/bin/ifort -o "/Users/munroe/Documents/My CVS/ESPlanner_Computation_Engine.HEAD/ESPlanner Executables-Xcode/espbasic/espbasic/build/Debug/espbasic" "-L/Users/munroe/Documents/My CVS/ESPlanner_Computation_Engine.HEAD/ESPlanner Executables-Xcode/espbasic/espbasic/build/Debug" -L/opt/intel/fc/10.1.014/lib -L/opt/intel/fce/10.1.014/lib -L/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/darwin/default "-F/Users/munroe/Documents/My CVS/ESPlanner_Computation_Engine.HEAD/ESPlanner Executables-Xcode/espbasic/espbasic/build/Debug" -filelist "/Users/munroe/Documents/My CVS/ESPlanner_Computation_Engine.HEAD/ESPlanner Executables-Xcode/espbasic/espbasic/build/espbasic.build/Debug/espbasic.build/Objects-normal/i386/espbasic.LinkFileList" -arch i386 -nostdlib -mmacosx-version-min=10.5 -dev-usr-root=/Developer/usr -shared-intel "" "" -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk
and I get a boatload of linker errors, mostly [I haven't ported a dynamic library we use on the Windows version yet, so those were expected] indicating that a lot of things like _memcpy, _for_* (where * is a bunch of thing related to I/O and other stuff), and _sortqq (and all the other IFPORT things that I use in the code). I've tried adding libifcore.a (or .dynlib as appropriate to the -share/-static-intel switch) to the project and that gets rid of the _for_* errors, but I'm still missing the ifport stuff (sortqq, et al.) and things like the fortran intrinsics (_ciel, _floor). I've tried it with both 64 and 32 bit builds and with both static and dynamic libraries. I've tried adding the libraries manually, but there doesn't seem to be any indicator of which libraries go with which missing reference so that's kind of hit or miss.
So what simple thing am I doing wrong?
Thanks in advance,