LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Help:Linkage errors when including NiInterface.lib in VC6 project

Hey fellows,

Have some problems with my VC6 project that uses component works elements.

When I'm using CNiUInt8Matrix in my project I need to inlcude a lib file
(otherwise I get LNK2001 errors).

I could find NiInterface.lib and NiInterfaceD.lib. What lib file I have to
use?

Anyway, both of the files lead to other errors (LNK2005 and LNK4098). Some
symbols are defined multiple.

NiInterface.lib is in conflict with mfc42.lib, mfcs42.lib, msvcrt.lib, and
nafxcwd.lib!

How can I resolve the problem???

Thank you in advance!

Henryk
0 Kudos
Message 1 of 6
(3,678 Views)
Hey guess I found the right way in the NI knowledge base. Here's the link
for anybody that is interested in:

http://digital.ni.com/public.nsf/$$Search

type in NiInterface as search word.

Ciao

Henryk
0 Kudos
Message 2 of 6
(3,678 Views)
Henryk,

I followed your link to the search engine and enter "NiInterface".

I found a document on converting an existing MVC++ project to contain NI Tools for VC++. After reading this I checked my project settings against these and they match.

Yet I still get the linker errors. Although they only appear when I use MFC as a static library but, this is what I want to do.

Have you or anybody else been able to fix this problem?

Cheers,
Neil Clark
0 Kudos
Message 3 of 6
(3,678 Views)
Neil

Did you find an answer to your question about getting link errors when use MFC as a static library?

I'm having a similar problem.

B
0 Kudos
Message 4 of 6
(3,678 Views)
Neil

Have you found a solution to your problem? I'm having the same error.

B
0 Kudos
Message 5 of 6
(3,678 Views)
> Have you found a solution to your problem? I'm having the same error.

Long time ago I found a document at the NI knowledge base that described how
to convert a visual C++ project to a project that contai´ns NI tools. Some
how I can not find the document anymore!

I'm back at work the first day after my vacations. Somehow I have to scan in
the document (won't be able today)or maybe you can find it by yourself at
the knowledge base.

Good luck!

If you can't any help at the knowledge base let me know. Then I will scan
the pages ...

Henryk
0 Kudos
Message 6 of 6
(3,678 Views)