On 07.03.2014 10:01, renshenguoer wrote:
C:\MinGW\bin\gfortran.exe /F600 /fpe:3 /Qopenmp /w /I:"C:\Program
Files
(x86)\VNI\imsl\fnl700\winin111e64\include\dll" /nologo -c
L:\PSUADEv1.6-build\CMakeFiles\CMakeTmp\testFortranCompiler.f -o
CMakeFiles\cmTryCompileExec400521423.dir\test
-> no
--has-pnetcdf-> no
--has-szlib ->
--prefix -> /usr
--includedir-> /usr/include
--version -> netCDF 4.1.3
--
View this message in context:
http://cmake.3232098.n2.nabble.com/Cmake-Gfortran-problem-tp7586931.html
Sent from the CMake mailing list archiv
It appears that CMake is adding this automatically to the link line, but the
user reporting this issue is using a normal gfortran which does not
recognize this option. How should I get CMake to link properly with this
non-Apple compiler (I think it just needs to leave out that option)?
___
On Sunday 07 November 2010 11:00:03 Eric Noulard wrote:
> enable_language(Fortran)
>
> for mixed language programming you have the
> FortranCInterface cmake module:
> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FortranCInterfac
> e
>
> If you search the ML archive you will find m
2010/11/7 luxInteg :
> Greetings,
>
>
>
> I am learning cmake I have the following gfortran libraries on my computer:-
>
> rt [ ~ ]$
> rt [ ~ ]$ ls -l /usr/lib/*gfortran*
> -rw-r--r-- 1 root root 8489924 Jul 27 12:19 /usr/lib/libgfortran.a
> -rwxr-xr-x 1 root root 952 Jul 27 12:19 /usr/lib/l
Greetings,
I am learning cmake I have the following gfortran libraries on my computer:-
rt [ ~ ]$
rt [ ~ ]$ ls -l /usr/lib/*gfortran*
-rw-r--r-- 1 root root 8489924 Jul 27 12:19 /usr/lib/libgfortran.a
-rwxr-xr-x 1 root root 952 Jul 27 12:19 /usr/lib/libgfortran.la
lrwxrwxrwx 1 root root
On 11/05/2010 07:21 PM, luxInteg wrote:
> Greetings,
>
> I have a little learning progect using cmake with gfortran.
>
> SOURCE files: .f, .f xxx.f and .f .y
>
> I want to do the following:-
>
>
> a) create a shared library libFFF.so and a static one libFFF.a (from
Greetings,
I have a little learning progect using cmake with gfortran.
SOURCE files: .f, .f xxx.f and .f .y
I want to do the following:-
a) create a shared library libFFF.so and a static one libFFF.a (from say
xxx.f and yyy.f)
b) find installed fortran librar
>
> Regardless of the cause of this problem, with both g77 and gfortran I get
> the proper results (success if the function exists, failure if not) if I
> change
>
> external ${FUNCTION}
>
> ==>
>
> call ${FUNCTION}()
>
> within CheckFortranFunctionExists.cmake.
>
> Alin and Brad (and any other For
CheckFortranFunctionExists.cmake (originally implemented by me and
now maintained by Alin Elena in CMake cvs) does not work properly with
gfortran. The issue is the bit of test code that reads as follows:
FILE(WRITE
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testFortranCompiler
El Thursday 24 January 2008 10:16:24 Javier Gonzalez escribió:
> Now, I don't compile any fortran code as part of my project but link to
> a library that was compiled using gfortran. Apparently, to link I then
> need to add the gfortran library which is the one I'm having trouble with.
On a side n
>>
> That worked. The compile lines were:
> /usr/bin/f95 -o CMakeFiles/hello.dir/hello.o -c
> /home/jgonzalez/cmake-test/hello.f90
> /usr/bin/f95 -fPIC "CMakeFiles/hello.dir/hello.o" -o hello -rdynamic
>
> Now, I don't compile any fortran code as part of my project but link to
> a library
Bill Hoffman wrote:
Javier Gonzalez wrote:
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$
OK
Javier Gonzalez wrote:
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$
OK, next step same prog
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 fi
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. Co
Maik Beckmann wrote:
> Am Mittwoch 23 Januar 2008 15:35:17 schrieb Javier Gonzalez:
>
>> Hi,
>>
>> I have a quick question. In my project I need to link against a library
>> that was compiled with gfortran. When I try finding the library it fails
>> because libgfortran.so doesn't exist, the one
Am Mittwoch 23 Januar 2008 15:35:17 schrieb Javier Gonzalez:
> Hi,
>
> I have a quick question. In my project I need to link against a library
> that was compiled with gfortran. When I try finding the library it fails
> because libgfortran.so doesn't exist, the one that is there is
> libgfortran.so
Hi,
I have a quick question. In my project I need to link against a library
that was compiled with gfortran. When I try finding the library it fails
because libgfortran.so doesn't exist, the one that is there is
libgfortran.so.1. I'm not aware of another package that should install
libgfortran.so
19 matches
Mail list logo