Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Re: Compile with C++ main and Fortran module
- Date: Tue, 26 Oct 2010 14:33:14 +0200
- Organization: GeometryFactory
Le mardi 26 octobre 2010 11:11:29, stevepny a écrit :
> 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
Please add VERBOSE=1 to your make options:
make VERBOSE=1
and post the part that begins with "Building CXX object
CMakeFiles/local_clib.dir/local_clib.cpp.o"
--
Laurent Rineau, PhD
Release Manager of the CGAL Project http://www.cgal.org/
R&D Engineer at GeometryFactory http://www.geometryfactory.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.