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.
use svn and download it?
Quote from: Seronis on September 25, 2007, 02:17:27 PM
use svn and download it?
Does svn contain libcodeblocks.a ?
Quote from: Denis on September 25, 2007, 02:22:34 PM
Quote from: Seronis on September 25, 2007, 02:17:27 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
Quote from: JGM on September 25, 2007, 02:36:44 PM
Quote from: Denis on September 25, 2007, 02:22:34 PM
Quote from: Seronis on September 25, 2007, 02:17:27 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:
- linking is faster this way and
- it's the only way to be certain that your plugin will work for users using the specific nightly
For the above reasons, you should also probably link to the nightly's wxmsw dll (for windows) instead of your own.
Quote from: JGM on September 25, 2007, 02:36:44 PMYou 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?
Quote from: Denis on September 25, 2007, 03:11:08 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
Seems it works. Thanks!