Author Topic: "include" folder and codeblocks library  (Read 10740 times)

Offline Denis

  • Multiple posting newcomer
  • *
  • Posts: 48
"include" folder and codeblocks library
« 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.

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: "include" folder and codeblocks library
« Reply #1 on: September 25, 2007, 02:17:27 pm »
use svn and download it?

Offline Denis

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: "include" folder and codeblocks library
« Reply #2 on: September 25, 2007, 02:22:34 pm »
use svn and download it?
Does svn contain libcodeblocks.a ?

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: "include" folder and codeblocks library
« Reply #3 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: "include" folder and codeblocks library
« Reply #4 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:
  • 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.
Be patient!
This bug will be fixed soon...

Offline Denis

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: "include" folder and codeblocks library
« Reply #5 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?

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: "include" folder and codeblocks library
« Reply #6 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

Offline Denis

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: "include" folder and codeblocks library
« Reply #7 on: September 26, 2007, 05:06:27 am »
Seems it works. Thanks!