[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bgl-discuss] c++ compiler



At 09:08 AM 8/10/2005, JungMin (Judy) Lee wrote:

Hi,



I am Jung-Min Lee working with Dr. Lan in IIT.



I have questions about compilers of C++ and Fortran (*.f90).



I have used f90 (/opt/ibmcmp/xlf/9.1/bin/f90) for *.f90 (fortran files) and
used g++ (/usr/bin/g++) for *.cc (C++ files).



However, when both fortran files and cc files are linked together, it has a
problem.

You need to include the runtime library for the "other" language. You might try using xlC instead of g++ and using f90 or xlf90 as the linker. If that doesn't work, you'll need to find out what libraries each language uses, and add the "missing" ones when you link.


Bill




Could you let me know how to solve this problem?



I am attaching my error script for you.



Thanks in advance.





William Gropp
http://www.mcs.anl.gov/~gropp


- --------------------------------------------------------------------
To add or remove yourself from this mailing list, use the 'notifyme'
command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.