Extra qualification

Alekiel

08-10-2008 03:28:12

Hello. I recently downloaded PagedGeometry to see how well it plays first handed, and when compiling I got these errors:

extra qualification ‘Forests::GrassLoader::’ on member ‘generateGrass_QUAD’
extra qualification ‘Forests::GrassLoader::’ on member ‘generateGrass_CROSSQUADS’
extra qualification ‘Forests::GrassLoader::’ on member ‘generateGrass_SPRITE’


Now, I followed what this thread suggested, but it did nothing for me.

namespace Forests{

Is already there and changing

Ogre::Mesh *GrassLoader::generateGrass_QUAD(PageInfo &page, GrassLayer *layer, float *grassPositions, unsigned int grassCount);

to

Ogre::Mesh *generateGrass_QUAD(PageInfo &page, GrassLayer *layer, float *grassPositions, unsigned int grassCount);

(As well as the other 2 lines) And it did nothing for me.

I am working in a Linux machine, trying to compile this using Code::Blocks.

Any help with this, please?

JohnJ

10-10-2008 00:16:33

Hmm... sounds like a GCC / Visual Studio incompatibility. I'll take a look at the code when I get a chance and see if I can spot any non-standard C++ code in relation to those functions.

JohnJ

18-10-2008 02:03:35

Sorry I haven't responded in a while.

Well I've looked at the code, and I can't see anything that would cause errors like that in relation to those functions. It must be some weird Linux or GCC thing, but I really don't know why that's happening (or even why it's an error and not a warning).

Let me know how this works out, or if some Linux expert has any ideas on this matter, feel free to post any ideas :). I don't know what else to do but maybe try it out on Linux myself (which is an option I guess).

Alekiel

18-10-2008 07:49:43

Hey JohnJ.

I recently updated my OS and tried to compile PagedGeometry again. I came across the same problem, but this time changing the lines allowed the program to continue compiling perfectly...

...Until the very end where I got this:

(.text+0x18)||undefined reference to `main'|

That... Completely threw me off. As far as I know this is because there's no main() function in the program.

Any ideas?

EDIT: Okay, I fixed that... For some reason, the program was set to "Console Application" in Debug properties and "GUI Application" in Release. Wut. Changing it to dynamic library fixed the issue, let me compile PagedGeometry.