I think I found a bug in the project wizard. i created a new project (Code::Blocks Plugin) and entered a plugin name with spaces e.g.: 'Blub Plugin'. With this name the wizard create the .cpp and .h files and the c++ classes have also the spaces in the name. This results in a error during compiling, of course. The wizard should replace the spaces with '-' or '_' or with ''.
plz have a look:
---------------
#include <sdk.h> // Code::Blocks SDK
#include <configurationpanel.h>
#include "Blub Plugin .h"
// Register the plugin with Code::Blocks.
// We are using an anonymous namespace so we don't litter the global one.
namespace
{
PluginRegistrant<Blub Plugin > reg(_T("Blub Plugin "));
}
// constructor
Blub Plugin ::Blub Plugin ()
{
// Make sure our resources are available.
// In the generated boilerplate code we have no resources but when
// we add some, it will be nice that this code is in place already Wink
if(!Manager::LoadResource(_T("Blub Plugin .zip")))
{
NotifyMissingFile(_T("Blub Plugin .zip"));
}
}
// destructor
Blub Plugin ::~Blub Plugin ()
{
}
---