`
yexin218
  • 浏览: 956277 次
  • 性别: Icon_minigender_1
  • 来自: 珠海
社区版块
存档分类
最新评论

C++ .Net Error Link 2005

阅读更多

 error LNK2005: "class Buddy * __clrcall getMaxMinDist(double,double)" (?getMaxMinDist@@$$FYMPAVBuddy@@NN@Z) already defined in child2.obj

 

getMaxMinDist是定义在ipv6.h,然后把ipv6导入child2.h中出现的错误。

网上的资料很多:参考:Error Link 2005

个人觉得出现这个错误是因为头文件重复导入的问题,但是更改了很多,还是没有解决。

只好使用有一点野蛮的方法:

在项目->属性->链接器->命令行->附加选项中加   /force

这样虽然还会报错,但是从Error更改为了warning,程序可以执行了。

具体的错误还在寻找中。

 

分享到:
评论

相关推荐

    USB30 Universal Serial Bus 3.0 Specification pdf it is free

    732 Link Error Types, Detection, and Recovery 7-27 733 Header Packet Errors 7-27 7331 Packet Framing Error 7-27 7332 Header Packet Error 7-28 7333 Rx Header Sequence Number Error 7-28 734 Link Command...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    Delphi/C++ Builder IDE. The program creates folders to keep EhLib binary and other requared files, copies requared files to created folders, compiles packages, register packages in IDE and write ...

    ICS delphixe10源码版

    .\Packages (was Delphi\Vc32) Delphi (7 and up) and C++Builder (2006 and up) packages projects .\Source (was Delphi\Vc32) ICS Delphi source code built into packages .\Source\Include (was Delphi\Vc32) ....

    UnicodeMFClib

    出现LINK : fatal error LNK1104: cannot open file "mfc42ud.lib" 错误 修改Unicode出现如上述的问题,解决方法:https://blog.csdn.net/can_yi/article/details/7280289

    JSTL详细标签库介绍

    href="http://www.jspcn.net/css/news.css"><LINK rel=stylesheet type=text/css href="http://www.jspcn.net/css/qq.css"> <META name=GENERATOR content="MSHTML 8.00.7600.16535"></HEAD> <LI><A href=...

    sqlite3在Visual studio 2012下的编译

    This page explains how to compile SQLite with Microsoft Visual Studio.NET (aka VS.NET). Download Download and unzip the file sqlite_source.zip (or sqlite-amalgamation-x_x_x_x.zip). Do not use the ....

    EhLib5.0.13 最新的ehlib源码

    versions 5, 6, 7, 8 & 9 , Borland C++ Builder versions 5 & 6, Borland Developer Studio 2006, CodeGear Delphi 2007, CodeGear RAD Studio 2009 and Embarcadero RAD Studio 2010. TABLE OF CONTENTS -------...

    EhLib 9.1.024

    Delphi/C++ Builder IDE. The program creates folders to keep EhLib binary and other requared files, copies requared files to created folders, compiles packages, register packages in IDE and write ...

    USB Complete 3rdEdition

    Using Visual C++ .NET 284 Using Visual Basic .NET 286 Finding Your Device 291 Obtaining the Device Interface GUID 292 Requesting a Pointer to a Device Information Set 293 Identifying a Device ...

    一个跨平台的CString源码

    // following link: // // http://www.joeo.net/code/StdString.zip (Dec 6, 2003) // // // REMARKS: // This header file declares the CStdStr template. This template derives // the Standard C++ Library ...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    Delphi/C++ Builder IDE. The program creates folders to keep EhLib binary and other requared files, copies requared files to created folders, compiles packages, register packages in IDE and write ...

    CentOS7.2.1511 gcc4.8.5 通过编译的 tfs2.2.16

    If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag ...

Global site tag (gtag.js) - Google Analytics