Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

link errors with Ni3DGraph80.lib

I am trying to build my project in release mode, but I encounter errors when trying to link the release version of Ni3DGraph80.lib.  If I use the debug version, Ni3DGraph80d.lib, I get no errors.  Removing 'D' results in the following errors:

1>atlsd.lib(Externs.obj) : error LNK2005: "char const * const g_pszUpdateEventName" (?g_pszUpdateEventName@@3PBDB) already defined in atls.lib(Externs.obj)
1>atlsd.lib(Externs.obj) : error LNK2005: "char const * const g_pszAllocFileMapName" (?g_pszAllocFileMapName@@3PBDB) already defined in atls.lib(Externs.obj)
1>atlsd.lib(Externs.obj) : error LNK2005: "char const * const g_pszKernelObjFmt" (?g_pszKernelObjFmt@@3PBDB) already defined in atls.lib(Externs.obj)
1>atlsd.lib(Externs.obj) : error LNK2005: "class CAtlAllocator g_Allocator" (?g_Allocator@@3VCAtlAllocator@@A) already defined in atls.lib(Externs.obj)
1>atlsd.lib(atltrace.obj) : error LNK2005: "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA) already defined in atls.lib(atltrace.obj)

I have no trouble linking to the release version of NiUI80.lib, and the debug version builds fine when linking to the debug libraries.  Any ideas on what I'm doing wrong?  Thanks.

Mark
0 Kudos
Message 1 of 3
(6,881 Views)
Hey Mark,

Have you tried compiling any of the examples that come with Measurement Studio that include the 3D Graph?  You should be able to find them underneath the Measurement Studio folder.  The path to the examples should look something like C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Examples\UI\3DGraph.
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 3
(6,867 Views)
As usual, the problem was in my project settings.  It always helps to have someone else look through them for something I'm missing.  Thanks for your help.

Mark
0 Kudos
Message 3 of 3
(6,837 Views)