The differences between KDE in Linux and Dev and Mingw in windows are as follows: Linux general technology-Linux programming and kernel information. Gsp:
MinGW Developer Studio 2.05 using g ++ compiler version is mingw-gcc-3.3.1
The g ++ compiler version for Dev-C ++ 4.9.2 may be the mingw-gcc-3.4.2
In Linux, Gcc4.3.2 (20070920) is installed)
Case 1: Hx
When the class template is compiled using Dev, an error is reported. The code is compiled using MinGW.
Case 2: Gsp
Write a program in C language to simulate the basic functions of the bc command in the UNIX environment, where I use the mathematical functions sin, cos, # include And isblank and isspace.
The situation is as follows:
KDE Compilation: sin and cos are not defined
Dev Compilation: Through
Mingw Compilation: isspace undefined
Solution:
KDE: After Baidu, add-lm to the compilation options and link it to the math library. Other compilers in the math library are linked by default.
Mingw: No way. I have to replace isspace with isblank.
Case 3: Gsp
Differences between Gcc versions
The following code snippet: