If you intend to write a GPL-licensed, opensource and multiplatform program in C or C++ and you want to use the serial port, look here:
RS-232 for Linux and WIN32
With this library, you can use GCC on Linux and MinGW on windows to access the serial
port without the need to make any changes in your sourcecode.
Regards.