News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Unabled to compile Contrib Plugins

Started by jayatk, January 30, 2006, 02:37:41 PM

Previous topic - Next topic

jayatk

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



thomas

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya


thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

jayatk

Thanks... I did some more digging, and got it working.

takeshimiya

Quote from: thomas on January 30, 2006, 03:02:56 PM
Quote from: Takeshi Miya on January 30, 2006, 02:58:22 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:

thomas

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 ;)).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

Quote from: thomas on January 30, 2006, 05:03:58 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