Closed Rodbourn closed 11 years ago
Adding -fPIC to OPTFLAGS compiles successfully, however. Perhaps the FLAGS aren't added in some location?
Dear Rodburn, thank you for your interest in this work. Unfortunately, I was not able to reproduce your error, but I have to admit that I am not an expert on library compilation. If you feel like we should address this issue, please provide some more information about your system so we can try and track down the problem.
Regards Jorrit
Hello Jorrit,
Thank you for this, its really helping me out by bringing refprop to my code. I don't think this is an 'issue' I just had to add -fPIC to the optimization flags, which I realized after the first post.
R
Hello,
First, thank you for this effort - very useful.
I tried compiling with $make header library as directed, but receive the following error even after adding '-fPIC' to the compiler options for C,C++,Fortran.
gfortran -rdynamic -fPIC -shared -Wl,-soname,librefprop.so.9 -O3 -ffast-math -Wall -pedantic -o ./bin/librefprop.so ./src/PASS_FTN_LIN.o ./fortran/SETUP.o ./fortran/CORE_ANC.o ./fortran/CORE_BWR.o ./fortran/CORE_CPP.o ./fortran/CORE_DE.o ./fortran/CORE_ECS.o ./fortran/CORE_FEQ.o ./fortran/CORE_MLT.o ./fortran/CORE_PH0.o ./fortran/CORE_QUI.o ./fortran/CORE_STN.o ./fortran/CORE_PR.o ./fortran/FLASH2.o ./fortran/FLSH_SUB.o ./fortran/IDEALGAS.o ./fortran/MIX_AGA8.o ./fortran/MIX_HMX.o ./fortran/PROP_SUB.o ./fortran/REALGAS.o ./fortran/SAT_SUB.o ./fortran/SETUP2.o ./fortran/TRNS_ECS.o ./fortran/TRNS_TCX.o ./fortran/TRNS_VIS.o ./fortran/TRNSP.o ./fortran/UTILITY.o /usr/bin/ld: ./src/PASS_FTN_LIN.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC ./src/PASS_FTN_LIN.o: could not read symbols: Bad value collect2: ld returned 1 exit status
Thank you!
R