//main.cpp
#include <iostream>
#include "incl.h"// <--- Sometimes order does make a difference.
#include "test.h"
int main()
{
std::cout << "Hello World!\n";
}
You are including "test,h" before you include the header file "stdint.h", so when you get to "test.h" the "int32_t" is not defined yet.
Or even this. Better than putting an #include <???> in a header file.
//main.cpp
#include <iostream>
#include "incl.h"// <--- Sometimes order does make a difference.
#include "test.h"
int main()
{
std::cout << "Hello World!\n";
}
This code can run on https://repl.it
But cannot run on VS2015, What do I need any config for VS2015?
It seem try build "*.h" file