namespace name and headers not recognized [message #780310] |
Tue, 17 January 2012 15:29 |
fabio T Messages: 4 Registered: December 2009 |
Junior Member |
|
|
Hi everyone,
I'm working on a rather huge C++ project, which encompasses a number of custom headers (.hpp) and namespaces. I've been given this project so I didn't start it myself.
Now, when building the project, the g++ compiler complains about missing headers and a namespace name not recognised. This happens only with few files, not in every where those headers are included or the namespace is used.
Specifically, there's a directory called 'ff' which contains various .hpp headers which I use. I added this directory ( and all subdirectories ) to the include path. Most of the headers contained in such directory are used throughout the project and are properly found, except for a couple of them, which I checked and are actually there!
#include "ff/farm.hpp"
#include "ff/lb.hpp"
#include "ff/gt.hpp"
#include "ff/node.hpp"
About namespace, there is just one .cpp file, where I use the command
which actually exists, but the compiler complains with: "expected namespace-name before ';' token". Notice that I also use that namespace somewhere else in the project and there it is ok.
Worst, sometimes in the same .cpp file - maybe only few rows below - functions like "gettimeofday(&time_misuration, NULL);" are marked either as "not declared in this scope" or are just fine!
I've been struggling with this for days now, and I tried everything I knew that could solve the problem: rebuild indexes, clean and rebuild the project, check and re-check paths and toolchain. The problem is still there.
Help! Help! Help!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02780 seconds