[Clas_offline] C++ fnc call from Fortran
Maurik Holtrop
maurik.holtrop at unh.edu
Fri Dec 11 15:32:07 EST 2009
Hello Taya,
Just for clarification. Does it not compile, or does it not link?
In either case, it would be very helpful to get the actual output from the compiler or linker, so we have an idea why it may be failing.
Best,
Maurik
On Dec 11, 2009, at 3:29 PM, Taisiya Mineeva wrote:
> Hello,
>
> I am writing to you with the question concerning calling a C++/ROOT
> function in Fortran code.
>
> I have a working test example of an external C++ function that is called
> in Fortran. This compiles/links well with g77/g++. However, the same
> procedure for compiling and linking does not work with gfortran/g++.
>
> My problem is that in order to compile Lepto generator (Fortran), where I
> am calling a C++ fnc, I need to use a set of cernlibs that have been
> compiled with gfortran. But the call in Fortran to C++ function does not
> compiles with gfortran.
>
> I would appreciate some guidance as to how proceed with gfortran/g++ on
> JLab CUE to call C++ from Fortran.
>
> Thank you in advance,
> Taya
>
>
>
>
>
> _______________________________________________
> Clas_offline mailing list
> Clas_offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/clas_offline
More information about the Clas_offline
mailing list