User forums > General (but related to Code::Blocks)

how to add dll to project?

(1/1)

wever:
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

stahta01:
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

I would use an CB Global Variable of sdk.

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

Tim S.

Navigation

[0] Message Index

Go to full version