Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with NiMath-library and Evaluation version

I'm evaluating Measurement Studio with the Evaluation version together with Visual Studio .NET 2003 (VC++). Always when I write a program that uses functions in the NiMath library I got problems when linking. I got the same errors when I try to build any of the including Math examples. When I'm not using functions in NiMath everything works.
 
Example
I create a project and add the following lines

CNiReal64Vector m_wave;

CNiMath::SineWave(m_wave, 100, 1);

 
When i build the following errors appears:
 
test error LNK2019: unresolved external symbol "public: int __thiscall NI::CniDemo::Access(void)" (?Access@CniDemo@NI@@QAEHXZ) referenced in function "public: static enum NI::MathError __cdecl NI::CNiMath::ImpulseWave(class NI::CNiScalarVector<double> &,double,int)" (?ImpulseWave@CNiMath@NI@@SA?AW4MathError@2@AAV?$CNiScalarVector@N@2@NH@Z)
test error LNK2019: unresolved external symbol "class std::auto_ptr<class NI::CniDemo> NI::global_demo" (?global_demo@NI@@3V?$auto_ptr@VCniDemo@NI@@@std@@A) referenced in function "public: static enum NI::MathError __cdecl NI::CNiMath::ImpulseWave(class NI::CNiScalarVector<double> &,double,int)" (?ImpulseWave@CNiMath@NI@@SA?AW4MathError@2@AAV?$CNiScalarVector@N@2@NH@Z)
 
 
/pek
0 Kudos
Message 1 of 2
(3,287 Views)

Hello!

 

I couldn’t find anything reported about this on our portal but I found some similar issues that might help you out.

 

Things to check:

  • Linking directories are not set correctly. Go to Tools>>options>>directories and add all the directories for the include files and lib files. This should get your program linking up.

  • Have you made sure that all of the necessary .lib files are properly linked to?

 

In order to resolve this external symbol you will have to provide the necessary files to the linker by either listing the files in your project file list (right-click on your project in the file view and select "add files to project...") or by going into your project's settings and entering the path to the files for which to link (go to Project >> Settings..., select the Link tab, select Input from the drop-down menu, and put the paths you want to add in the Additional Library Path field).

 

Hope this helps!


Regards,

Jimmie A.

Applications Engineer, National Instruments

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 2 of 2
(3,234 Views)