Hello for compiled problem

Satish Balay balay at mcs.anl.gov
Tue Mar 10 14:45:14 CDT 2009


On Tue, 10 Mar 2009, Wei-Dong Lian wrote:

> Hello,
> 
> I did not configure the flag -PIC, can you tell me how to change the -PIC to
> -fPIC.

Its a problem with configure - and you default language of choice. Try
changing your lang to english - when building PETSc.

Perhaps the following might work.

export LANG en_US.UTF-8
./config/configure.py ...
make

> By the way, why there are two types lib *.so and *.lib in the library path.

Perhaps you mean .a - not .lib

If you use --with-shared=1 or --with-dynamic=1 - you get .so files aswell.

> But when I change option to FC=g77, it only left *.lib in the library path.

Due to the -PIC issue - perhaps .so files didn't get created..

Satish



More information about the petsc-users mailing list