As usual, before posting I've try to read many forums, google answers and still can't find the issue. I got a piece of code that is working. It compiles in any linux dist, it compiled in mountain lion before, and it compiles from the terminal, when I try to compile it through netbeans 7.4, I get the following errors Here is the compile command:
g++ -c -g -I../../Downloads/boost_1_50_0 -I. -I../../Downloads/RInside/inst/include -I/Library/Developer/CommandLineTools/usr/bin/../lib/clang/5.0/include -I/ -I/Library/Developer/CommandLineTools/usr/include -I/usr/include -I/usr/include/c++/4.2.1 -MMD -MP -MF "build/Debug/GNU-MacOSX/main.o.d" -o build/Debug/GNU-MacOSX/main.o main.cpp
And here are the errors
In file included from main.cpp:7:
In file included from /usr/include/c++/4.2.1/cstdlib:71:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:110:
/usr/include/sys/resource.h:193:2: error: unknown type name 'uint8_t'
uint8_t ri_uuid[16];
^
/usr/include/sys/resource.h:194:2: error: unknown type name 'uint64_t'
uint64_t ri_user_time;
Line 7 reads:
#include <cstdlib>
I guess its a problem with the include libraries, but it is just a guess, I re-installed netbeans, got java 1.7.0_45, installed command line tools, delete cache_dir, and still same problem, the really odd part is that when I compile it from the terminal
g++ main.cpp -o main -I./
That works....and it worked before when I had mountain lion...Any help would be deeply appreciated. Best, Jorge