Author Topic: Default Plugin Doesnt Compile  (Read 17408 times)

Offline bear24rw

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: Default Plugin Doesnt Compile
« Reply #15 on: August 05, 2007, 03:01:26 am »
Alright i'm still unclear on how to get my plugin to work with the nightly ive been using (8-3-07)

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Default Plugin Doesnt Compile
« Reply #16 on: August 05, 2007, 03:16:11 am »
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:
Code
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.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline bear24rw

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: Default Plugin Doesnt Compile
« Reply #17 on: August 05, 2007, 03:24:29 am »
Alright it makes sense now.. im downloading 4346 so i can rebuild it like you said

Thanks for all you help

Offline bear24rw

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: Default Plugin Doesnt Compile
« Reply #18 on: August 05, 2007, 03:48:09 am »
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

Offline bear24rw

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: Default Plugin Doesnt Compile
« Reply #19 on: August 05, 2007, 03:53:12 am »
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

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Default Plugin Doesnt Compile
« Reply #20 on: August 05, 2007, 04:31:11 am »
try linking against dlls that come with your nightly build instead of your self-compiled versions.

Offline bear24rw

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: Default Plugin Doesnt Compile
« Reply #21 on: August 05, 2007, 05:59:19 am »
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
« Last Edit: August 05, 2007, 06:43:04 am by bear24rw »

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Default Plugin Doesnt Compile
« Reply #22 on: August 05, 2007, 06:27:46 am »
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)