First, let us know which compiler you are using. Bet to give you some idea:
- Most compilers come with standard libraries that make it very easy to configure and use serial communication.
- The APIs are declared in corresponding header files.
- If you have to use a specific API, you 'include' the corresponding header file in your .c or .cpp file and then use these functions to open, configure, read from/write to, and close the serial port. (a common example: to use console IO including keyboard inputs, I would include conio.h and while compiling, see that that the library path for compilation includes the standard library libc.lib)
Hence, more information is required to give specific suggestions.
[um.narayanan@gmail.com]