Summary of recent C + + compilation issues

Source: Internet
Author: User
Tags ticket

There are several problems in compiling C + + code, summarizing:

1. Compiling OpenSSL encounters a problem because the compilation compilation is not supported and is added to the Perl compiler directive: NO-ASM, such as: Perl Configure Vc-win32 no-asm, as a whole:

A.perl Configure Vc-win32 no-asm
B.ms\do_ms
C.nmake-f Ms\ntdll.mak

2. Build OpenSSL 0.9.8, encountered error: Problem with Bufferoverflowu.lib, detailed: http://rt.openssl.org/Ticket/Display.html?id=2086 &user=guest&pass=guest, eventually replaced by a high version, resolved (OPENSSL-1.0.2A), seems to be a low version bug

3. Compile OpenSSL encounters an error if:

It is said to be loaded with vs2012, and then compiled with VS2010, resulting (vs2012 has been uninstalled before), Workaround: Uninstall the. NET Framework 4.5.1 in Control Panel, and related information, reinstall. NETFramework 4.0 resolution.

4. Compile, report a heap cannot parse external symbol error: Usually the reference library version is not the same as the x86 environment, referencing the x64 bit library, or the external library path is not correct.

5. The module computer type x64 x86 conflict with the target computer type, indicating that you want to compile the x86 machine 32-bit code, but reference the x64 library file. If it is a third-party library, pay attention to the third-party library to provide Yi instructions, if there is no relevant instructions to set the operating environment, in the Vs2008/vs2010,tool folder has x86 environment, x64 environment, in the corresponding DOS environment in the compilation can be. Detailed reference: https://technet.microsoft.com/zh-cn/magazine/f2ccy3wt.aspx

6. Install VS2010, Win7 SDK, VS2010 SP1 related issues. After installing VS2010, install WIN7SDK, my machine cannot install successfully. The specific reason is unclear, the vc++2010 part needs to be unloaded through the VS2010 installation program. After successful installation, restore VC + + 2010 via VS2010 Setup program. After installing VS2010 SP1, Vc-compiler-kb2519277.exe (https://www.microsoft.com/zh-cn/download/details.aspx?id=4422)

Other Questions RELATED links:

Http://stackoverflow.com/questions/16171612/using-websocketpp-library-to-connect-to-a-c-websocket-server
Https://github.com/zaphoyd/websocketpp/wiki/Building-the-examples-and-unit-tests
Http://rt.openssl.org/Ticket/Display.html?id=2086&user=guest&pass=guest
Http://www.cnblogs.com/newpanderking/articles/3372969.html
Http://www.iplaysoft.com/vs2010-sp1.html
http://www.microsoft.com/en-us/download/details.aspx?id=4422
Https://technet.microsoft.com/zh-cn/magazine/f2ccy3wt.aspx
https://social.msdn.microsoft.com/Forums/vstudio/en-US/a40492f6-f3ac-4e16-ace5-5065babbe6b1/ Cant-call-cprogram-filesmicrosoft-visual-studio-100vcvcvarsallbat-x86amd64?forum=vssetup
Http://www.cnblogs.com/hbccdf/p/dllchecktoolandsyswow64.html
Http://cleris.diandian.com/Dumpbin-Check-Compiled-Platform
Dumpbin/headers-exports/out:d:\kd_1.txt file name
http://www.haodaima.net/art/1932411
Https://github.com/sbabybird/sbabybird.github.com/blob/master/_posts/2013-11-07-complie-mongodb-with-vs2008.md
ENV = Environment (env = os.environ, Target_arch = ' x86 ')
Http://stackoverflow.com/questions/9588738/visual-studio-command-compiler-forces-64-bit-compile
Http://www.scons.org/doc/HTML/scons-user.html

Summary of recent C + + compilation issues

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.