User forums > General (but related to Code::Blocks)

plugin development

<< < (2/3) > >>

severach:
Has anyone considered making a C only plugin interface so it will be compatible across version, builds, and compilers? A C++ interface may be handy for rapid development but it will be forever plagued with compatibility problems which will limit plugin availability to only those built regularly by the Code::Blocks team. Private plugins would require constant rebuilds and commercial plugins are infeasible.

A C interface would be a bit more efficient too.

Scintilla is C ready already.

Ceniza:
Having a C only plugin wouldn't make much sense since most of Code::Blocks is written in C++ (¿SDK 100% C++?) and also wxWidgets. It would be very problematic to get a C plugin showing a configuration dialog, adding a toolbar, a menu, and interfacing with everything in the SDK. It'd need to be some kind of hack.

I think it's easier to just rebuild the plugin :)

utku:
well, I have installed SVN, downloaded current 1863, recompiled wx to support unicode, and finally compiled c::b without major problems but when I run the executable it crashes instantly. I do not have a clue about this. :(

AkiraDev:

--- Quote from: utku on January 26, 2006, 06:24:56 am ---well, I have installed SVN, downloaded current 1863, recompiled wx to support unicode, and finally compiled c::b without major problems but when I run the executable it crashes instantly. I do not have a clue about this. :(

--- End quote ---

Incompatibilities between C::B and some old plugins may cause it to crash in some cases. You probably just took the first step which is building C::B itself. After you built the C::B main program and core plugins, open the ContribPlugins.Workspace file, which contains the community contributed plugins. Build this workspace and if everything went fine, go to the directory where you have the C::B source. You should see the update.bat batch file there. Execute it. You should have a final version of all your binaries inside the "output" directory.

HTH

tiwag:

--- Quote from: utku on January 26, 2006, 06:24:56 am ---well, I have installed SVN, downloaded current 1863, recompiled wx to support unicode, and finally compiled c::b without major problems but when I run the executable it crashes instantly. I do not have a clue about this. :(

--- End quote ---

did you run src/update.bat ? (for Windows builds) before running the codeblocks.exe
this is necessary to create all the directories with resources

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version