Differences between KDE in Linux and Dev and Mingw in windows

Source: Internet
Author: User
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:
QUOTE:
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.