Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Denis on September 25, 2007, 12:55:57 pm

Title: "include" folder and codeblocks library
Post by: Denis on September 25, 2007, 12:55:57 pm
Dear developers, please include "include" folder of C::B and codeblocks library into nightly builds (with different archive file for example). It will help to build external plugins without building whole codeblocks from sources.
Title: Re: "include" folder and codeblocks library
Post by: Seronis on September 25, 2007, 02:17:27 pm
use svn and download it?
Title: Re: "include" folder and codeblocks library
Post by: Denis on September 25, 2007, 02:22:34 pm
use svn and download it?
Does svn contain libcodeblocks.a ?
Title: Re: "include" folder and codeblocks library
Post by: JGM on September 25, 2007, 02:36:44 pm
use svn and download it?
Does svn contain libcodeblocks.a ?

You can link against codeblocks.dll on windows and I think that on linux to libcodeblocks.so. This was something that I doesn't know until recent days. So you can link against dll's
Title: Re: "include" folder and codeblocks library
Post by: mandrav on September 25, 2007, 03:00:52 pm
use svn and download it?
Does svn contain libcodeblocks.a ?

You can link against codeblocks.dll on windows and I think that on linux to libcodeblocks.so. This was something that I doesn't know until recent days. So you can link against dll's

Actually this the preferred way to link, for two reasons:


For the above reasons, you should also probably link to the nightly's wxmsw dll (for windows) instead of your own.
Title: Re: "include" folder and codeblocks library
Post by: Denis on September 25, 2007, 03:11:08 pm
You can link against codeblocks.dll on windows and I think that on linux to libcodeblocks.so. This was something that I doesn't know until recent days. So you can link against dll's
How to do it? I use MinGW. Which tools should I use or GCC can link dll files directly?
Title: Re: "include" folder and codeblocks library
Post by: JGM on September 25, 2007, 03:22:53 pm
How to do it? I use MinGW. Which tools should I use or GCC can link dll files directly?

Ok, click on Project->Build Options then select Linker settings there add wxmsw28u_gcc_cb. Now click on Search Directories -> Linker and add the path where you have the C::B nightly installed.

The compiler will search in the codeblocks directory that you specified on the linker directories and use the wxmsw28u_gcc_cb.dll. This also works for files named like libname.dll, you just have to write name on the linker settings and GCC will take care of the rest.

Do the same steps for codeblocks.dll, is better that compiling codeblocks or wxwidgets by your self. :D
Title: Re: "include" folder and codeblocks library
Post by: Denis on September 26, 2007, 05:06:27 am
Seems it works. Thanks!