1/20/2024 0 Comments Fenty contour stick for fair skin![]() I finally was able to build the libCoolPropa, without getting noticed of DCOOLPROP_EXTERNC_LIBRARY=ON -DCMAKE_VERBOSE_MAKEFILE=ON cmake -build Installation of Visual Studio) This worked, meaning that after executing the following suggested commands:Ĭmake / -G "MinGW Makefiles" -DCOOLPROP_STATIC_LIBRARY=ON Which is the tool I'm planning to adopt (in order to avoid the cumbersome Therefore tried with the GCC 52 distribution shipped with Simply Fortran, Library of CoolProp and link it with my FORTRAN code I tried MinGW but (asĪnticipated in a warning) did not work I thus tried with the TDM-GCCĭistribution (carrying the GCC 51 version) but still this did not work I I can try later on myĭear all, I'm following the suggested procedure to compile a static Gcc, you should use that all the way through. You can't mix and match compiler stacks usually. I must admit I'm not a programming guru, and I'm probably overlooking some stupid detail.I hope and trust you will be able to solve these problems! thanks in advance. You can see the output in the text below, copied from the prompt!Ĭ:\CoolProp\wrappers\Fortran\detailed_example>gcc -o main *.o libCoolProp.a -lstdc++ -lgfortranĬool_fortran_bind.o:cool_fortran_bind.f90:(.text+0x19d): undefined reference to PropsSI' cool_fortran_bind.o:cool_fortran_bind.f90:(.text+0x1e9): undefined reference toPropsSI'Ĭ:/program files (x86)/simply fortran 2/mingw-w64/bin/./lib/gcc/x86_64-w64-mingw32/5.2.0/././././x86_64-w64-mingw32/bin/ld.exe: cool_fortran_bind.o: bad reloc address 0x0 in section `.pdata'Ĭ:/program files (x86)/simply fortran 2/mingw-w64/bin/./lib/gcc/x86_64-w64-mingw32/5.2.0/././././x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid operationĬollect2.exe: error: ld returned 1 exit statusĬ:\CoolProp\wrappers\Fortran\detailed_example> ![]() I get in the troubles that, up to now, proved endless. Gcc -o main *.o libCoolProp.a -lstdc++ -lgfortran Thus if I continue by issuing the command I get the cool_fortran_bind.o and cpinterface.o and cpinterface.mod created (nice !) Gfortran -c -Wall cpinterface.f90 cool_fortran_bind.f90 I thus tried to run the suggested example in CoolProp\wrappers\Fortran\detailed_example. I finally was able to build the libCoolProp.a, without getting noticed of any error (nice !). G "MinGW Makefiles" -DCOOLPROP_STATIC_LIBRARY=ON -DCOOLPROP_EXTERNC_LIBRARY=ON -DCMAKE_VERBOSE_MAKEFILE=ON This worked, meaning that after executing the following suggested commands:Ĭmake. I therefore tried with the GCC 5.2 distribution shipped with Simply Fortran, which is the tool I'm planning to adopt (in order to avoid the cumbersome installation of Visual Studio). ![]() I thus tried with the TDM-GCC distribution (carrying the GCC 5.1 version) but still this did not work. I tried MinGW but (as anticipated in a warning) did not work. Dear all, I'm following the suggested procedure to compile a static library of CoolProp and link it with my FORTRAN code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |