Compile order in a project [message #157325] |
Sat, 05 November 2005 13:08 |
Eclipse User |
|
|
|
Originally posted by: paulpigott.earthlink.net
Greetings,
I'm trying to get a project to compile that uses the <string> type. The
project currently consists of the main project file ("Validator.cpp") and
two included files ("BuildVCA.cpp" and "VCAClass.cpp").
The main file has "#include <string>" and "using namespace std;" at the
beginning of the file. There are also usages of <string> in the main file
itself: passing messages and such.
The other two files have some string variables defined in them, but the
g++ compiler is generating "error: 'string' does not name a type". I
presume this means that my "#include"ed files are being compiled before
the main file, thus missing the type include.
However, I'm new with g++ and make so I can't be sure.
Could someone at least point me in the correct direction on this? I would
greatly appreciate it.
Thanks,
Paul
|
|
|
Powered by
FUDForum. Page generated in 0.03025 seconds