Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

Error when build Fortran Project in Xcode

$
0
0

 

Hi, I have Mac Yosemite 10.10.3, Xcode 6.3 and Fortran composer_xe_2015.3.187.

I could build my project in command line using this command:

"/opt/intel/bin/ifort -static-intel -dynamiclib -openmp *.o -o libsamplesize.dylib"

I tried to use Xcode to debug as there is some issue with memory management,

this is my first time to use Xcode for Fortran project, I have followed instruction

how to create Fortran project in Xcode and linked "libiomp5.dylib" to

the project, but got error message below,

what I need to do to fix it? Thanks!

Ld /Users/admin_lxh37/Library/Developer/Xcode/DerivedData/smart-gdvirwgekqfyelbapbcdvzwwaqnc/Build/Products/Debug/smart normal x86_64
    cd /Users/admin_lxh37/Desktop/smart/smart
    export MACOSX_DEPLOYMENT_TARGET=10.10
    /usr/bin/ifort-15.0 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Users/admin_lxh37/Library/Developer/Xcode/DerivedData/smart-gdvirwgekqfyelbapbcdvzwwaqnc/Build/Products/Debug -L/opt/intel/composer_xe_2015.3.187/compiler/lib -F/Users/admin_lxh37/Library/Developer/Xcode/DerivedData/smart-gdvirwgekqfyelbapbcdvzwwaqnc/Build/Products/Debug -filelist /Users/admin_lxh37/Library/Developer/Xcode/DerivedData/smart-gdvirwgekqfyelbapbcdvzwwaqnc/Build/Intermediates/smart.build/Debug/smart.build/Objects-normal/x86_64/smart.LinkFileList -mmacosx-version-min=10.10 -dev-usr-root=/Applications/Xcode.app/Contents/Developer/usr -liomp5 -o /Users/admin_lxh37/Library/Developer/Xcode/DerivedData/smart-gdvirwgekqfyelbapbcdvzwwaqnc/Build/Products/Debug/smart

Undefined symbols for architecture x86_64:
  "_MAIN__", referenced from:
      _main in for_main.o
ld: symbol(s) not found for architecture x86_64
Command /usr/bin/ifort-15.0 failed with exit code 1

 


Viewing all articles
Browse latest Browse all 2583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>