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

New User assistance with getting started

seniorrojo
Beginner
565 Views
Hello,

I think these are two easy questions, but it is has been very difficult to find the answers to.
I just downloaded and installed Xcode version 3.1.2 and Fortran Compiler version 11.

1. I created the simple "Hello World" program and it compiles fine:

PROGRAM HelloWorld

write(*,*)'Hello World'

END PROGRAM


I do not understand, though, why I am not getting an executable file. Is there some
flag that needs to be created or is this file do simple?

2. If I create a second file and build it in the same project, I receive the error message
"duplicate symbol in _MAIN_ " .... even though both files in the project compile
individually.

Can someone tell me what is causing this error message.

Thanks in advance for your help.


0 Kudos
5 Replies
Kevin_D_Intel
Employee
565 Views
The first issue probably relates to the ppc target discussed in the earlier threads, like the onehere

The error for the second issue suggests the second file added also contains a PROGRAM statement.
0 Kudos
seniorrojo
Beginner
565 Views
The first issue probably relates to the ppc target discussed in the earlier threads, like the onehere

The error for the second issue suggests the second file added also contains a PROGRAM statement.

Hi Kevin,

Thank you for your reply.

I repeated the steps in your document and had a question.

Under Groups & Files > Targets, I selected the name

of my project and selected Get Info. I click on the Build

tab to show the Architecture settings (Configuration: All Configurations,

Show: All Settings).

In the Target "my_project_2" Info window, under Architectures,

there are several other choices:

Here they are along with my current settings:

Additional SDKs which is blank

Architectures - Standard (32-bit Universal)

Bask SDK - Mac OS X 10.5

Build Active - Architecture Only

Valid Architectures - i386 ppc ppc64 ppc7400 ppc970 x86_64.

In step 4 you say to change the setting either to use a check

box to select Intel and the value of i386 should appear.

However, this doesn't seem to be an option in the

window that I am at.

Am I in the wrong window?

Thanks again.

0 Kudos
Kevin_D_Intel
Employee
565 Views
You are right where you need to be. The field of interest is Valid Architectures.

There are a couple of methods for editing the values associated with the settings. Try this:

Double left-click on Valid Architectures. A pop-up window should appear. Left-click once on a value like ppc, then click the minus (-) sign at the bottom of the window. That removes the value. Try removing all values except i386 and x86_64.
0 Kudos
Kevin_D_Intel
Employee
565 Views
I'm not sure the architecture setting is the issue. I'm able to create new projects w/Xcode 3.1.2 and Intel 11.0 without having to tweak the Valid Architectures setting.

I attached a .tgz file with a Hello sample. Maybe it will help get you started.
0 Kudos
seniorrojo
Beginner
565 Views
I'm not sure the architecture setting is the issue. I'm able to create new projects w/Xcode 3.1.2 and Intel 11.0 without having to tweak the Valid Architectures setting.

I attached a .tgz file with a Hello sample. Maybe it will help get you started.

Hi Kevin,

Thanks again for your help.

You are correct, I did not need to change the settings. I just made a mistake
in compiling the program (silly oversight)

Thanks again for your help!



0 Kudos
Reply