Paip. c ++ qt _ gxx_personality_sj0 _ gxx_personality_v0 Solution

Source: Internet
Author: User

Paip. c ++ qt _ gxx_personality_sj0 _ gxx_personality_v0 Problem Solving author Attilax, EMAIL: 1466519819@qq.com Source: attilax column address: http://blog.csdn.net/attilax online said solution with gcc-o t. cpp-lstdc ++ why is this error: it is because you use gcc to compile. cpp file. by default. cpp files are in c ++ format. Another method is to use g ++-o t. cpp is also possible. This method is correct in separate c ++ .. but qt c ++ does not work... the environment is as follows: ---------------- qt creator2.8.1 Qt 5.1.1 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB) (Info) the operating system is xp .. version Final Solution :----- ------------- Project> buld> qmake param> Add the following three parameters. QMAKE_CXX = g ++-dw2QMAKE_CC = gcc-dw2QMAKE_LINK = g ++-dw2 actual causes are as follows: ------------- C ++ error model errors, exception models are divided into two types: sjlj and dw2... I don't know why, in xp, mingw uses sjlj by default during compilation, it will be wrong... use the dw2 mode forcibly to go to OK LAN .. when we compile the 32-bit gcc of mingw64, we usually use dw2 exceptions. This method is easy to debug and has good performance. The size of the target program generated by sjlj is small, so it is mostly used in embedded systems. Of course, it can also be used in x86 systems. See the compilation of c files appear undefined reference to '_ gxx_personality_v0'-red union Linux portal-China's leading Linux technology site-website navigation-Linux general technology-linuxlinuxprogramming and internal nuclear .htm tdm64-gcc mingw-w64 problems-CSDN Forum- CSDN.NET.htm

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.