When the Linux side compiled so, a stray ' \357 ' in the program was reported as an error.
There are probably two possible ways:
1. The source file contains Chinese characters (comments are not counted).
2. The source file encoding format adopts the UTF-8 with BOM format.
Then I looked at the problem of coding format, as long as you save it as a different encoding format to recompile.
In addition, there is no error when compiling Windows side, you can compile it.
It should be purely just Linux that does not accept UTF-8 with the BOM format code.
In addition, error LNK2005: __cinit already defined in Libcmt.lib (crt0dat.obj) type error occurred while compiling the project in Windows environment.
Typically, because the two default libraries are conflicting with each other, such a problem can block one or more of these libraries by ignoring the specified library in the project (or project)-> Property-> linker->.
If you still have a compile error after shielding one, you may be masking the wrong object, and you can try to block another library.