Author Topic: Unabled to compile Contrib Plugins  (Read 6905 times)

Offline jayatk

  • Multiple posting newcomer
  • *
  • Posts: 40
Unabled to compile Contrib Plugins
« 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



Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Unabled to compile Contrib Plugins
« Reply #1 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

  • Guest
Re: Unabled to compile Contrib Plugins
« Reply #2 on: January 30, 2006, 02:58:22 pm »
cgEditor? :lol:

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Unabled to compile Contrib Plugins
« Reply #3 on: January 30, 2006, 03:02:56 pm »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline jayatk

  • Multiple posting newcomer
  • *
  • Posts: 40
Re: Unabled to compile Contrib Plugins
« Reply #4 on: January 30, 2006, 03:17:19 pm »
Thanks... I did some more digging, and got it working.

takeshimiya

  • Guest
Re: Unabled to compile Contrib Plugins
« Reply #5 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:

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Unabled to compile Contrib Plugins
« Reply #6 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 ;)).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

  • Guest
Re: Unabled to compile Contrib Plugins
« Reply #7 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