LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get "Multiply Defined Symbol" link errors when linking to a Visual C++ library?

I have built a library using MS Visual C++ 6.0 using the _cdecl* calling convention. When I try to link it into my LabWindows/CVI program I get 30 link errors, one of which is shown below. They appear all to be referring to C++ string class symbols.

Multiply defined symbol '??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ' in modules 'c:\A.lib' and 'c:\A.lib'.

Any suggestions would be much appreciated.
0 Kudos
Message 1 of 2
(3,148 Views)
CVI is not a C++ compiler. Therefore to link with libraries from C++ you have to extern "C" any function that you are calling from the library. I can't really tell if this is why you are getting this error, but it is a potential source.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(3,148 Views)