News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Default Plugin Doesnt Compile

Started by bear24rw, August 05, 2007, 12:39:04 AM

Previous topic - Next topic

bear24rw

Alright i'm still unclear on how to get my plugin to work with the nightly ive been using (8-3-07)

TDragon

Well, the August 3rd nightly was based on SVN revision 4346, so the best way to ensure compatibility is to download that specific source revision:

svn co svn://svn.berlios.de/codeblocks/trunk -r 4346

(Or, if using TortoiseSVN, just use 4346 instead of the HEAD revision.)

You can basically use your nightly build to build an almost-identical version from these new sources, then rebuild your plugin to link to this just-built version.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

bear24rw

Alright it makes sense now.. im downloading 4346 so i can rebuild it like you said

Thanks for all you help

bear24rw

aghhh this is getting really fustrating.. here is what i did

REdownloaded 4346 nightly. downloaded 4346 sources
compiled 4346 sources with 4346 nightly
opened my helloworld project and compiled it
tried to add it to plugins.. same message about it being built with a different sdk

bear24rw

The plugin works if i use it with the cb i compiled.. but does this mean that i can only use it with my compiled version or do i just have to wait for a new nightly to come out

dmoore

try linking against dlls that come with your nightly build instead of your self-compiled versions.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

bear24rw

#21
What do you mean 'linking against'.. do you mean change the linker in the build options.. if you do then what would i change it to? only dll's come with the nightly's

EDIT

I got it working now :) i did as you said and linked to the dll's included in the nightly thank you very much for you help

dmoore

under build options, linker
instead of linking against libcodeblocks.a and libwxmsw28u.a
link against codeblocks.dll and wxmsw28u_gcc_cb.dll

this will allow you to run your plugin with most recent nightly builds (provided the codeblocks.dll doesn't change too much)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]