Compilation fails in VS2010 for C++ programs building fine in Linux

后端 未结 3 650
独厮守ぢ
独厮守ぢ 2021-01-29 04:32

My C++ project builds and runs fine on Linux. Now I am trying to compile it in VS2010. I get many errors seemingly from cmath library like the following one.

Err         


        
3条回答
  •  耶瑟儿~
    2021-01-29 05:15

    You will get better results easier ifyou use some port of gcc compiler for Windows. Try mingw32 or cygwin. Visual Studio is good compiler, but it is not the same as gcc and doesn't have identical libraries, so you will need to rewrite some parts of your source code.

    The errors you get are about missing functions.

提交回复
热议问题