I recently downloaded the CPORT libary by BRI Productions in order to do simple serial communication between winnt to a Motorolla HC12. My problems is when I add and compile the CPORT sample code into VC++ console app I get a bunch of errors compiling.
I copied cport.h and cport.hpp to the Microsoft "Include" folder. This is the error I'm getting:
-----------
Linking...
RS232_Serial.obj : error LNK2001: unresolved external symbol _ComClose
RS232_Serial.obj : error LNK2001: unresolved external symbol _ComPuts
RS232_Serial.obj : error LNK2001: unresolved external symbol _comopen_errno
RS232_Serial.obj : error LNK2001: unresolved external symbol _ComOpen
Debug/Sentry.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Sentry.exe - 5 error(s), 0 warning(s)
-------------
I also tried including the .lib file in the project setttings, but I get a file error with the cports.lib library.
Am I missing some fundamentail step in using this library?
Thanks for any help.