This program compiles just fine:
#include <iostream>
#include <stdio.h>
#include <boost/program_options.hpp>
int main(int argc, char* argv[]) {
std::cout << "Hello world" << std::endl;
}
This program gives a long compilation error:
#include <iostream>
namespace cio {
#include <stdio.h>
}
#include <boost/program_options.hpp>
int main(int argc, char* argv[]) {
std::cout << "Hello world" << std::endl;
}
The full dump of the compilation error: http://codepad.org/aIcQqkgH
The linux command I'm using to compile the program is: c++ -o main.cpp.o -c main.cpp