Jump to content
  • Advertisement
Sign in to follow this  
felipedrl

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

This topic is 4013 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!