Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

error in visul c++

I write a code for C and the program is working, but if i try to build visul c++ applicaton i got a error message:


T1.obj : error LNK2001: unresolved external symbol _ncCloseObject@4
T1.obj : error LNK2001: unresolved external symbol _ncStatusToString@12
T1.obj : error LNK2001: unresolved external symbol _ncWrite@12
T1.obj : error LNK2001: unresolved external symbol _ncOpenObject@8
T1.obj : error LNK2001: unresolved external symbol _ncConfig@16
Debug/T1.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.

what i must to do so application to work in visual c++ 6.0
0 Kudos
Message 1 of 2
(4,349 Views)
Hello ilijaf,

you forgot to include the nican ibrary in the project. with Visual C there are a couple ways of doing this, the one i do for these types of projects is just put this in my source code so i don't forget it.

#pragma comment( lib, "nicanmsc.lib" )

just copy/paste it in a source file.

0 Kudos
Message 2 of 2
(4,343 Views)