I am trying to write a console application in Windows 2000 to talk to the serial port in C/C++.
I have been able to use Turbo C++ to talk to the serial ports using the dos.h inportb/outportb. I tried editing my main.cpp to include the dos.h from Turbo C, but the compiler says undefined reference to outportb/inportb.
I like the user friendliness of Codeblocks when writing code. Can someone tell me where I can get a serial/com port library that I can link to Codeblocks, or how to use the dos.h that Turbo C uses in Codeblocks?
Thanks,
JM