Windows C++到Linux系统的跨平台移植

Windows C++到Linux系统的跨平台移植

  • 一、编译时遇到的问题:
  • 二、解决方法:
    • 2.1. fatal error: io.h “没有那个文件或目录
    • 2.2 error : expected initializer before "xx"
    • 2.3 error:expectd constructor,destructor, or type conversion before ‘( ’ token
    • 2.4 error: 'sprintf_s' was not declared in this scope
    • 2.5 error: invalid conversion from 'char'* to 'size_t' {aka 'long insigned int'}[-fpermissive]

你可能感兴趣的:(linux,c++,ubuntu)