Correct way to install external dependencies in CodeBlocks ...
I am trying to install DynaPDF (a free PDF manipulation library) in CodeBlocks. I got a .msi file which installed the package containing dlls, static libs and headers in my computer. But that didn't link the package with the Compiler in CodeBlocks, and so I tried the following to do so: 0) Add the include folder of the installed directory to the Search Directories / Compiler ( In CodeBlocks, one finds this in - Compiler/Search Directories/Compiler/ - and Add...) 1) Add the linker folder for libraries to the Search Directories / Linker ( In CodeBlocks, one finds this in - Compiler/Search Directories/Linker/ - and Add...) 2) Add the .dll files present in the bin folder again to the System32 and SysWOW64 folder in C:\\Windows 3) Add the static libs (.lib, .a) to - Compiler/Linker Settings/ Link Libraries - in CodeBlocks. Even after doing all this, I still get: H:/All C++ Files/SDL Interface/PDF Check/a.cpp:13: undefined reference to `__imp_pdfNewPDF' H:/All C++ Files/SDL Interface/PDF Check/a.cpp:16: undefined reference to `__imp_pdfSetOnErrorProc' H:/All C++ Files/SDL Interface/PDF Check/a.cpp:17: undefined reference to `__imp_pdfCreateNewPDFA' H:/All C++ Files/SDL Interface/PDF Check/a.cpp:18: undefined reference to `__imp_pdfSetPageCoords' H:/All C++ Files/SDL Interface/PDF Check/a.cpp:19: undefined reference to `__imp_pdfAppend' H:/All C++ Files/SDL Interface/PDF Check/a.cpp:20: undefined reference to `__imp_pdfSetFontA' H:/All C++ Files/SDL Interface/PDF Check/a.cpp:21: undefined reference to `__imp_pdfWriteFTextA' H:/All C++ Files/SDL Interface/PDF Check/a.cpp:22: undefined reference to `__imp_pdfEndPage' H:/All C++ Files/SDL Interface/PDF Check/a.cpp:23: undefined reference to `__imp_pdfCloseFile' H:/All C++ Files/SDL Interface/PDF Check/a.cpp:24: undefined reference to `__imp_pdfDeletePDF' So, what is the correct way to link libraries to CodeBlocks for use? I have the same error in installing SDL libraries as well.