Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

beginner for help to use fortran by Xcode

Fan_Z_
Начинающий
3 894Просмотр.

 am new to fortran, Xcode and mac area. But I don't know how to use fortran.  At first, I have problem starting fortran. I followed this link http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/2011Update/start/mac/for/comp/tutorial/co_m_ide1.htm 

but when I change the built rules and do built, there are two errors. 

Ld Warning symbol(s) not found for architecture x86_64

Ld Error Command /usr/bin/ifort-14.0 failed with exit code 1

the mac I use is OS 10.9.1 and intel core i5, I think it's 64bt. 

And the complier I use is  Intel® Fortran Composer XE for OS X*. for free 30 days

the Xcode I use is 5.0.2

Hope someone could help me with easy understanding words.

0 баллов
3 Ответы
Denis_B_Intel1
Сотрудник
3 894Просмотр.

Hello Fan Z.,

You seem to did everything correctly. Could you paste here the build log - it would help to undestand the cause of the linker error. To see the build log, open Log Navigator, click latest Build, then locate Link step line and expand it (rightmost button in the line).

Thanks,

Denis

Fan_Z_
Начинающий
3 894Просмотр.

Denis Briltz (Intel) wrote:

Hello Fan Z.,

You seem to did everything correctly. Could you paste here the build log - it would help to undestand the cause of the linker error. To see the build log, open Log Navigator, click latest Build, then locate Link step line and expand it (rightmost button in the line).

Thanks,

Denis

Thank you, here is the picture attached following your advice. So what should I do?

Denis_B_Intel1
Сотрудник
3 894Просмотр.

Fan Z.,

Thanks for the screenshot. It looks as if your Fortran program does not have main entry point ("program main"). You may need to write it to be able to create executable.

Regards,

Denis

Ответить