• Advertisement
Sign in to follow this  

C++ : Weird error. Name collision?[SOLVED]

This topic is 3833 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm getting a weird error. It complains about a included file.
#ifndef _AGGREGATE_H__
#define _AGGREGATE_H__

#include "Polygon.h"
#include "Vector2D.h"
#include "CGeometry.h"
#include "Mesh2D.h"

using namespace geometry;

class Aggregate
{
    public:

        /**
         * Default Constructor
         */
        Aggregate( float angularity = 0.5, float size = 50.0);

        /**
         * Construct the aggregate randomly based on its angularity and size
         */
        void build();


I get the following errors: expected unqualified-id before "using" expected `,' or `;' before "using" I realized that if I comment the #include "Mesh2D.h" line it will compile until it finds the first Mesh2D object declaration. Can it be a name collision problem? I mean, what happens if there exists another library called Mesh2D? How do I handle this... Does anyone know what I'm getting this error? Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
Did you forget a semicolon at the end of a class declaration in Mesh2D.h?

The problem is probably in Mesh2D.h, if you can't spot it try posting it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement