Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find nicanmsc.lib

Solved!
Go to solution

Hello folks,

 

I hope I'm posting this in the correct forum.

 

I'm developing a CAN (NICAN) program in C++ using MS Visual Studio 2008.  I have found the nican.h, but I haven't been able to find nicanmsc.lib.

 

Any assistance is greatly appreciated.

 

Thanks,

Chris Hassan

0 Kudos
Message 1 of 5
(7,485 Views)
Solution
Accepted by chassan

Chris,

 

Check out C:\Program Files\National Instruments\NI-CAN\MS Visual C

 

Regards,

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer
0 Kudos
Message 2 of 5
(7,460 Views)
I think I had to check "NI-CAN" when installing/changing labview to get the "NI-CAN" directory.

I tried using the file in an x64 .c program in MSVS and get a bunch of link errors.

Win32 platform mode work ok, but I have java x64 bin and I think I will need x64 bit nicanmsc.lib to
be able to do JNI on a 64 bit java with c and JNI and java.
0 Kudos
Message 3 of 5
(6,179 Views)
here are the error I got when trying to build a x64 bit "c" program with nicanmsc.lib

error LNK2019: unresolved external symbol ncCloseObject referenced in function main	C:\Users\...\can.obj	CAN
error LNK2019: unresolved external symbol ncConfig referenced in function main	C:\Users\...\can.obj	CAN
error LNK2019: unresolved external symbol ncOpenObject referenced in function main	C:\Users\...\can.obj	CAN
error LNK2019: unresolved external symbol ncReadMult referenced in function main	C:\...\can.obj	CAN
error LNK2019: unresolved external symbol ncStatusToString referenced in function PrintStat	C:\Users\...\can.obj	CAN
error LNK1120: 5 unresolved externals	C:\Users\...\x64\Debug\CAN.dll	1	1	CAN

0 Kudos
Message 4 of 5
(6,177 Views)
Attached is a picture of the NI-CAN that has the nicanmsc.lib

The NI-CAN is in:

National Instruments Device Drivers Disk

Then in the tree:

Communication Buses and Protocols
   NI-CAN 2.7.5
      etc...

I think you need to check this in order to get the nicanmsc.lib
Maybe you also need to check
the 
      LabVIEW 2013 (32-bit) Support
         Examples

      Microsoft Visual C Support
         Examples

0 Kudos
Message 5 of 5
(6,172 Views)