[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bgl-discuss] c++ compiler
Specifically, something like this should work:
MPI_PATH = /bgl/BlueLight/ppcfloor/bglsys
CC = blrts_xlc
FC = blrts_xlf
LINK = blrts_xlf
FFLAGS = -O3 -qalign=4k -qfree=f90 -qrealsize=8
CFLAGS = -O2 -qmaxmem=64000 -qsource -qlist
LIBS_GENERIC = -L$(MPI_PATH)/lib -lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts
driver_mxm : driver_mxm.o mxm.o
$(LINK) -o driver_mxm driver_mxm.o mxm.o $(LIBS_GENERIC)
driver_mxm.o : driver_mxm.f
$(FC) -c $(FFLAGS) -I$(MPI_PATH)/include driver_mxm.f
mxm.o : mxm.c
$(CC) -c $(CFLAGS) mxm.c
On Wed, 10 Aug 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.
>
>
>
> Could you let me know how to solve this problem?
>
>
>
> I am attaching my error script for you.
>
>
>
> Thanks in advance.
>
>
>
>
- --------------------------------------------------------------------
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.