Linking the plugin to a Nightly Build

From Code::Blocks
Revision as of 01:15, 19 January 2008 by Jgm (talk | contribs) (→‎Introduction)

This article describes how to link your plugin against the dll's shipped with codeblocks on windows.

Introduction

Is useful to know how to compile Code::Blocks sources from scratch to link with our plugin, but when we want to share it with the community then we need to link it against the latest nightly build or final release of codeblocks. This is a simple procedure that many people doesn't know at first, and that will help you accelerate development in many ways. Enjoy :)

Procedure

Here are the instructions divided in steps for the easy navigation of our eyes.

Step One

Download and install the latest nightly found on this forum /index.php/board,20.0.html Also you will need the Code::Blocks SDK so checkout the sources on berlios.de using svn.

Step Two

Get the wxWidgets sources at http://wxwidgets.org and configure the setup.h to be compatible with the actual wxmsw28u_gcc_cb_wxXXX.dll compilation.

Step Three

After having your plugin up and running you will need to edit the compiler options and add the directory where your nightly is residing to the linker. Then add the needed libraries to the linker to compile the plugin that usually are wxmsw28u_gcc_cb.dll and libcodeblocks.dll. You don't need to write the .dll extension or the lib word so they will look like this on the linker Options:

  • wxmsw28u_gcc_cb
  • codeblocks

Conclusion

You should now be able to compile the plugin and load it to the current nightly with out the symbols error. A problem that many developers confront after compiling the plugin with a compilation that differs from the official one. This was a quick howto so is maybe missing info, I will update it later. Good Luck!