Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Compile with C++ main and Fortran module

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Compile with C++ main and Fortran module


Chronological Thread 
  • From: stevepny <>
  • To:
  • Subject: [cgal-discuss] Re: Compile with C++ main and Fortran module
  • Date: Wed, 27 Oct 2010 13:58:20 -0700 (PDT)


Ah, great! cmake completes now. And, make is compiling. There is one last
issue though, it doesn't find the boost library libboost_date_time, which is
one of the built packages like libboost_thread. How do I specify this in
cmake?

In my makefile I used this library:
# Boost libraries:
CPPLIB = -L/homes/metogra/spenny/boost_1_44_0/stage/lib -lboost_date_time
# Link executable
local_exe.x : letkfio.o localization.o
$(LN) $? -o $@ $(F90LIB) $(CPPLIB) $(CPPINC)

I'll note: I also had to change the function calls in the C++ main routine
to the format __{moduleName}_MOD_{functionName} for gfortran. Is there a way
to specify within the CMakeLists.txt file that I'd like to use the pgf90
fortran compiler? That would allow me to avoid renaming all my fortran
function calls, since pgf90 uses the format {moduleName}_{functionName}_.

Thanks very much for your assistance!
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Compile-with-C-main-and-Fortran-module-tp3009841p3016269.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page