VC compilation problems

Source: Internet
Author: User

Link: Warning lnk4075: Ignoring/editandcontinue due to/Incremental: no specification
Libcd. Lib (crt0dat. OBJ): Error lnk2005: _ exit already defined in msvcrt. Lib (msvcrt. dll)
Libcd. Lib (crt0dat. OBJ): Error lnk2005: _ exit already defined in msvcrt. Lib (msvcrt. dll)
Libcd. Lib (winxfltr. OBJ): Error lnk2005: _ xcptfilter already defined in msvcrt. Lib (msvcrt. dll)
Libcd. Lib (crt0init. OBJ): Error lnk2005: ___ xc_z already defined in msvcrt. Lib (cinitexe. OBJ)
Libcd. Lib (crt0init. OBJ): Error lnk2005: ___ xc_a already defined in msvcrt. Lib (cinitexe. OBJ)
Libcd. Lib (crt0init. OBJ): Error lnk2005: ___ xi_z already defined in msvcrt. Lib (cinitexe. OBJ)
Libcd. Lib (crt0init. OBJ): Error lnk2005: ___ xi_a already defined in msvcrt. Lib (cinitexe. OBJ)
Msvcrt. Lib (msvcrt. dll): Error lnk2005: _ setmbcp already defined in libcd. Lib (mbctype. OBJ)
Link: Warning lnk4098: defaultlib "msvcrt. lib" conflicts with use of other libs; Use/nodefaultlib: Library
Msvcrt. Lib (cinitexe. OBJ): Warning lnk4098: defaultlib "libcd. lib" conflicts with use of other libs; Use/nodefaultlib: Library
Libcd. Lib (crt0.obj): Error lnk2001: unresolved external symbol _ main
Release/admintool.exe: Fatal error lnk1120: 1 unresolved externals
Error executing link.exe.

The settings are as follows:

# Pragma comment (linker, "/nodefaultlib: msvcrtd. lib ")
# Pragma comment (linker, "/nodefaultlib: libcd. lib ")

If you do not connect to all default libraries:

# Pragma comment (linker, "/nodefaultlib ")

Connect to the specified database:

# Pragma comment (Lib, "jrtplib-2.9.lib ")

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.