Topic: problem linking static labraries
Problem linking static libraries
Adding two new libraries to my project following messages appears after build:
c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/6.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lLib_panels
c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/6.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llib_CastorWeight
collect2.exe: error: ld returned 1 exit status
Error(E42): Last command making (CASTOR12lt.exe) returned a bad status
Error(E02): Make execution terminated
However Lib_panels.a and lib_CastorWeight.a are properly built in there own directories and the directories are in the search directories of the option tab file locations available under Library Directories like all other lib's.
The linker in the compiler flag tab is as follows:
-lASC12 -lstructure_concept -ledit-sheet-library -lDXF_interface -llongit_str_check -lLib_panels -llib_CastorWeight
All prior lib's are linked properly; thy are all static 64 bits
What is going wrong and how can I fix this problem?
An other question:
I found that i have to rebuild the main program (compiling all source files of the main program again) after source of libraries are changed. Is there a way to avoid this?