Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Problems using CPORT.H in VC++ V6.0

foozy_manfoozy_man Member Posts: 1
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.




Comments

Sign In or Register to comment.