i need to create a project that able to run both under linux and windows(visual studio)... i pretty much finish all coding and able to run both windows and linux in separate files
the problem i deal with is the header file
which visual studio required #include "StdAfx.h" and not found in G++ under linux
i tried to #ifndef and #ifdef to fix it in this way, but visual studio still gives me a compiler error. so how should fix to make it works under both in Linux(g++) and windows(visual studio)?
#ifdef WIN32 (also tried ifndef)