Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: jayatk on January 30, 2006, 02:37:41 pm

Title: Unabled to compile Contrib Plugins
Post by: jayatk on January 30, 2006, 02:37:41 pm
Ever since rev 1879, I've been unable to compile most of the projects in the Contribplugins.workspace.  Before that I haven't had a problem.

Here's the error:
Compiling: codestat.cpp
In file included from codestat.cpp:10:
codestat.h: In member function `int CodeStat::GetConfigurationGroup()':
codestat.h:43: error: `cgEditor' undeclared (first use this function)
codestat.h:43: error: (Each undeclared identifier is reported only once for each function it appears in.)
Process terminated with status 1 (0 minutes, 2 seconds)
2 errors, 0 warnings

Title: Re: Unabled to compile Contrib Plugins
Post by: thomas on January 30, 2006, 02:55:43 pm
I tried, and it works just fine. Please make sure you updated correctly so your working copy is good.

It is well possible with svn to update only a subpath (deliberately or accidentially) which leads to a collection of files with mixed revisions (yes, this makes sense in some situations, that's a feature, not a bug).

Probably that is the case with your WC. If everything is up-to-date, all is fine.
Title: Re: Unabled to compile Contrib Plugins
Post by: takeshimiya on January 30, 2006, 02:58:22 pm
cgEditor? :lol:
Title: Re: Unabled to compile Contrib Plugins
Post by: thomas on January 30, 2006, 03:02:56 pm
cgEditor? :lol:
Yes, what about it?
Title: Re: Unabled to compile Contrib Plugins
Post by: jayatk on January 30, 2006, 03:17:19 pm
Thanks... I did some more digging, and got it working.
Title: Re: Unabled to compile Contrib Plugins
Post by: takeshimiya on January 30, 2006, 04:26:19 pm
cgEditor? :lol:
Yes, what about it?

On a first look, I thought it was a typo for cbEditor, on a second look, I thought it was something about the CG nVidia language. :D
Then I realized that was about the configuration. :P

Changing cgXXX to cfgXXX could prevent typos when writting plugins that deals with cbEditors and cgEditors. :wink:
Title: Re: Unabled to compile Contrib Plugins
Post by: thomas on January 30, 2006, 05:03:58 pm
This does not bear the same meaning, though. "cg" does not stand for "config", but for "configuration group".
cbEditor is just a const int which will become a typedefed enum once Yiannis is finished working on the configuration stuff, so there will be not much opportunity for typos (and it's not like we have a cg editor, anyway ;)).
Title: Re: Unabled to compile Contrib Plugins
Post by: takeshimiya on January 30, 2006, 07:24:25 pm
and it's not like we have a cg editor...
...yet. :lol:
But probably it wouldn't be in the sdk if there were one. :P