Problems when adding a new source code

From: Maya (escalante_at_vif.com)
Date: 08/01/04


Date: Sun, 01 Aug 2004 05:27:25 -0700

I really think that this is one of those problems where the solution is
yelling at you while pointing out where the problem is, but I just can't
get it together, I mean, it's a long weekend here in Canada and I am
still trying to find out where the problem is.

I have a class parser called Url, the program runs perfectly. However, I
need to plug this class in another class as an object called 'url',
which goes like this

001 namespace jme{
002 class boo{
003 jme::MyString str;
004 jme::Url ur;
005 std::string something;
006 int foo;
   .....

When I try compiling the program I get an error that reads:
MyNewClass.hpp: 4: error: syntax error before ';' token

I really don't know what the problem could be, I have written several
classes and have used them in the very same way with out any problems.
I hope that one of you have had this kind of problem befor and is able
to recognize the error message.

Note: The Makefile file is okay, the source code is okay, I mean, it
compiles and runs without any problem in test program!! It is only when
I try to crate an object of the class Url in the other class that I get
the error.
I am using GCC on Windows XP under the cygwin environment.

Thanks folks!!



Relevant Pages