Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: wever on January 21, 2015, 06:51:53 pm

Title: how to add dll to project?
Post by: wever on January 21, 2015, 06:51:53 pm
Hi, I just downloaded SDL.dll which is needed in source which I downloaded from internet:
#include <SDL/SDL.h>

I donwloaded both the SDL.dll and the sources (many files and directories). But I cannot find out how to add these directories or the dll to project. I added the dll through Build options / Linker settings (not sure if it is the right place) but how to add the headers? I can add files to project when I open it and then add it to project. That's th only way I know
Title: Re: how to add dll to project?
Post by: stahta01 on January 21, 2015, 07:33:24 pm
Read this FAQ on the topic
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#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?title=FAQ-Compiling_%28general%29#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)

I would use an CB Global Variable of sdk.

http://wiki.codeblocks.org/index.php?title=Recommended_global_variables (http://wiki.codeblocks.org/index.php?title=Recommended_global_variables)

Tim S.