Subject: CGAL users discussion list
List archive
- From: stevepny <>
- To:
- Subject: [cgal-discuss] Re: Compile with C++ main and Fortran module
- Date: Tue, 26 Oct 2010 02:11:29 -0700 (PDT)
I applied the change you suggested. Those functions are defined in the
fortran module 'letkfio'. I've tried different combinations of function
names, as I'm not sure how cmake handles the fortran function calls from
C++. When I compiled from my own make file (without CGAL), I had to use the
format [moduleName]_[functionName]_ for all fortran function calls from C++.
I tried a variety of combinations (seen below), but none of them seem to be
recognized.
[ 33%] Building CXX object CMakeFiles/mom2_elf.dir/local_clib.cpp.o
Linking CXX static library libmom2_elf.a
[ 33%] Built target mom2_elf
[ 66%] Building Fortran object CMakeFiles/mom2_io.dir/letkfio.f90.o
Linking Fortran static library libmom2_io.a
[ 66%] Built target mom2_io
[100%] Building CXX object CMakeFiles/local_clib.dir/local_clib.cpp.o
make[2]: Warning: File `libmom2_elf.a' has modification time 1.8e+02 s in
the future
Linking CXX executable local_clib
CMakeFiles/local_clib.dir/local_clib.cpp.o: In function `main':
local_clib.cpp:(.text+0xb1b): undefined reference to `get_nobs_letkf_'
local_clib.cpp:(.text+0x1323): undefined reference to
`letkfio_read_obs_letkf_'
local_clib.cpp:(.text+0x1f69): undefined reference to `write_obs_letkf'
local_clib.cpp:(.text+0x20f7): undefined reference to `write_obs_letkf'
collect2: ld returned 1 exit status
make[2]: *** [local_clib] Error 1
make[1]: *** [CMakeFiles/local_clib.dir/all] Error 2
make: *** [all] Error 2
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Compile-with-C-main-and-Fortran-module-tp3009841p3013358.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Compile with C++ main and Fortran module, stevepny, 10/25/2010
- Re: [cgal-discuss] Compile with C++ main and Fortran module, Laurent Rineau (GeometryFactory), 10/25/2010
- [cgal-discuss] Re: Compile with C++ main and Fortran module, stevepny, 10/26/2010
- Re: [cgal-discuss] Re: Compile with C++ main and Fortran module, Laurent Rineau (GeometryFactory), 10/26/2010
- [cgal-discuss] Re: Compile with C++ main and Fortran module, stevepny, 10/27/2010
- Re: [cgal-discuss] Re: Compile with C++ main and Fortran module, Laurent Rineau (GeometryFactory), 10/27/2010
- [cgal-discuss] Re: Compile with C++ main and Fortran module, stevepny, 10/27/2010
- Re: [cgal-discuss] Re: Compile with C++ main and Fortran module, Laurent Rineau (GeometryFactory), 10/27/2010
- [cgal-discuss] Re: Compile with C++ main and Fortran module, stevepny, 10/27/2010
- Re: [cgal-discuss] Re: Compile with C++ main and Fortran module, Laurent Rineau (GeometryFactory), 10/27/2010
- [cgal-discuss] Re: Compile with C++ main and Fortran module, stevepny, 10/27/2010
- Re: [cgal-discuss] Re: Compile with C++ main and Fortran module, Laurent Rineau (GeometryFactory), 10/27/2010
- [cgal-discuss] Re: Compile with C++ main and Fortran module, stevepny, 10/27/2010
- Re: [cgal-discuss] Re: Compile with C++ main and Fortran module, Laurent Rineau (GeometryFactory), 10/26/2010
- [cgal-discuss] Re: Compile with C++ main and Fortran module, stevepny, 10/26/2010
- Re: [cgal-discuss] Compile with C++ main and Fortran module, Laurent Rineau (GeometryFactory), 10/25/2010
Archive powered by MHonArc 2.6.16.