[CMake] gfortran
Javier Gonzalez
javierggt at yahoo.com
Wed Jan 23 15:13:19 EST 2008
Bill Hoffman wrote:
> Javier Gonzalez wrote:
>
>>>>
>>> Try to compile a simple hello world program using gfortran at
>>> command line to test if it's cmakes fault of if your gcc
>>> installation is broken.
>>>
>>> To do so copy this code
>>> http://www.roesler-ac.de/wolfram/hello.htm#Fortran90
>>> and paste it into a file i.e. hello.f90. Compile it via
>>> gfortran -o hello hello.f90
>>> and run it
>>> ./hello
>>>
>> I temporarily made a link to the library and my application works fine.
>> I don't want to tell all the users of my application to go and make a
>> link, that is why I don't think it is a long term solution.
>>
> But seriously, if you compile a simple test case WITHOUT CMake and
> your compiler does it work? If the answer is yes, then it might be
> CMake's fault and we will try to help. If the answer is no, then tell
> your users to install gfortran correctly.
>
> -Bill
>
I did it and it works (I removed the link just in case):
bash-3.2$ ls
hello.f90
bash-3.2$ cat hello.f90
PROGRAM HelloWorld
WRITE(*,*) "Hello World!"
END PROGRAM
bash-3.2$ gfortran -o hello hello.f90
bash-3.2$ ./hello
Hello World!
bash-3.2$
Javier
More information about the CMake
mailing list