I am working on a C++ program in Eclipse (3.8.1) CDT. I am using the gcc compiler on Debian 8. I'm also using an open source library called opendnp3 written in C++, which requires uint32_t to resolve as it's a parameter in several method calls and constructors.
In the opendnp objects, intellisense doesnt list
__uint32_t
however, DOES resolve.
The type is defined in <cstdint>
(<cstdint>
resolves just fine). I can open the declaration and clearly see 'using ::uint32_t;
' in there.
In my searching, I've added -std=c++11
to 'All options' under 'C/C++ Build --> Settings -> Tool Settings -> GCC C++ Compiler' and I've also rebuilt the project index and restarted Eclipse, but it still doesn't resolve.
Here's the code so far: Edited to a simple HelloWorld project to help diagnose problem
#include <iostream>
#include <cstdint> //has uint32_t defined
using namespace std;
int main() {
__uint32_t t = 0; //resolves just fine
uint32_t i = 0; //Type could not be resolved
auto x = "123"; //C++ 11 working
cout << "Foo!" << endl; // prints Foo!
return 0;
}
CDT Console after a build attempt:
23:10:52 **** Incremental Build of configuration Debug for project FOO **** make all make: Nothing to be done for 'all'.
23:10:52 Build Finished (took 133ms)