Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: lbertolotti on June 27, 2017, 10:42:41 pm
-
Is there a way to link multiple libraries to a project? Say for example I want to link all the GNU Scientific Libraries to my project.
-
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(general)#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F (http://wiki.codeblocks.org/index.php/FAQ-Compiling_(general)#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F)
Follow the "For your project :" section.
Tim S.
-
So if I want to link all libraries, I have to link them one by one?
-
So if I want to link all libraries, I have to link them one by one?
what do you want to ask with this?
If you want to link GSL to your project you have to tell the compiler that you want to link GSL. If you additionally want to link OpenMP you have to tell the compiler you want also link OpenMP.
So probably yes: you have to tell the compiler/linker every single library you want to link against. Where else then from you should he know what version he has to use and from where he has to take it.
Of corse there is automation for this (mostly only on unix systems with pkg-config). But you give not much information on your environment so we can not help you with this..
-
I use Windows 10 and Ubuntu 16.04.
I managed to get multiple libraries by holding SHIFT and CTRL.
Sometimes Code::Blocks is freezing, but no idea why.
-
disable symbol browser in
Settings->Editor->Code completition->Symbol browser
to get rid of the freezing (crashing)