Advertisement

06.17.2008 at 05:04PM PDT, ID: 23493685
[x]
Attachment Details

Two different 3rd party libraries with the same function names (Scope problem)

Asked by Chipkin_com in C++ Programming Language, C Programming Language

Tags: c++, UniKey.lib(UniKey.obj) : error LNK2005: "unsigned long __cdecl CheckDeviceCapabilities(void *)" (?CheckDeviceCapabilities@@YAKPAX@Z) already defined in Rockey4ND.lib(R4ND_API.obj)

Hello

I have a scope problem
I have two 3rd party libraries (UniKey.lib and Rockey4ND.lib ) that I do not have the source code for.
Both of them use the same function names but have different capabilities.

I need to include them in the same project and I need to call them individually.Start Free Trial
1:
2:
3:
4:
5:
6:
UniKey.lib(UniKey.obj) : error LNK2005: "unsigned long __cdecl CheckDeviceCapabilities(void *)" (?CheckDeviceCapabilities@@YAKPAX@Z) already defined in Rockey4ND.lib(R4ND_API.obj)
UniKey.lib(UniKey.obj) : error LNK2005: "void __cdecl CloseAllDevice(void)" (?CloseAllDevice@@YAXXZ) already defined in Rockey4ND.lib(R4ND_API.obj)
UniKey.lib(UniKey.obj) : error LNK2005: "unsigned long __cdecl WriteReport(void *,struct Feature_Report *)" (?WriteReport@@YAKPAXPAUFeature_Report@@@Z) already defined in Rockey4ND.lib(R4ND_API.obj)
UniKey.lib(UniKey.obj) : error LNK2005: "unsigned long __cdecl ReadReport(void *,struct Feature_Report *)" (?ReadReport@@YAKPAXPAUFeature_Report@@@Z) already defined in Rockey4ND.lib(R4ND_API.obj)
UniKey.lib(UniKey.obj) : error LNK2005: "unsigned long __cdecl GetStatusCode(unsigned char)" (?GetStatusCode@@YAKE@Z) already defined in Rockey4ND.lib(R4ND_API.obj)
UniKey.lib(UniKey.obj) : error LNK2005: "unsigned long __cdecl CommandReport(int,struct Feature_Report *,struct Feature_Report *)" (?CommandReport@@YAKHPAUFeature_Report@@0@Z) already defined in Rockey4ND.lib(R4ND_API.obj)
 
Keywords: Two different 3rd party libraries with t…
 
Loading Advertisement...
 
[+][-]06.17.2008 at 06:58PM PDT, ID: 21809322

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.17.2008 at 09:53PM PDT, ID: 21810154

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.18.2008 at 07:13AM PDT, ID: 21813084

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C++ Programming Language, C Programming Language
Tags: c++, UniKey.lib(UniKey.obj) : error LNK2005: "unsigned long __cdecl CheckDeviceCapabilities(void *)" (?CheckDeviceCapabilities@@YAKPAX@Z) already defined in Rockey4ND.lib(R4ND_API.obj)
Sign Up Now!
Solution Provided By: JohnGaby
Participating Experts: 4
Solution Grade: A
 
 
[+][-]06.24.2008 at 03:12PM PDT, ID: 21860899

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628