Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Compile order in a project
Compile order in a project [message #157325] Sat, 05 November 2005 13:08
Eclipse UserFriend
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
Previous Topic:Make a C++ lib (Eclipse/CDT/MinWG)
Next Topic:New to CDT - Having problems with C++ project build
Goto Forum:
  


Current Time: Wed Jul 03 17:22:46 GMT 2024

Powered by FUDForum. Page generated in 0.03782 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top