I have project developed in c on windows machine using Microsoft Visual Studio. The project is successfully compiled and run on windows but when trying to compile source code(.cpp, .h) on linux server it throws errors like
Errors:
In file included from
warning: `#pragma once' is obsolete
SDKDDKVer.h: No such file or directory
The command used to compile *.cpp file is
gcc-2.95 -c -g -O2 -ffloat-store -Wall -Wpointer-arith\ -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes\ -Wmissing-declarations -Werror -ftemplate-depth-25 -Iinclude file1.cpp
searched online but could not find any direct solution to the problem. On few websites they have suggested to use Cygwin but my task is one time activity so not sure if it is really required to setup Cygwin on my pc. I am not sure what the errors above mean(as I am new to c).
Let me know if there is any place/websites that lists the changes required while moving from c programs from windows to linux.