Hi,
We are using write(file_descriptor, Ascii string, size of string) to write to a serial port in linux "/dev/ttyS0"
It works fine in C. However, we are trying to combine some code that is written in C++, and the only problem we have is that these two functions , read() and write(), dont seem to translate directly over. In C no header files are needed to use them, however when compiling in C++ it doesnt know what the functions are, so I assume there might be a header file out there that we need to include that has these functions defined? If so can someone tell me what it is? Thanks in advance...
Or , are there equivelent functions in C++? (we would like to still use the ones we have so we dont have to change code)
We are using write(file_descriptor, Ascii string, size of string) to write to a serial port in linux "/dev/ttyS0"
It works fine in C. However, we are trying to combine some code that is written in C++, and the only problem we have is that these two functions , read() and write(), dont seem to translate directly over. In C no header files are needed to use them, however when compiling in C++ it doesnt know what the functions are, so I assume there might be a header file out there that we need to include that has these functions defined? If so can someone tell me what it is? Thanks in advance...
Or , are there equivelent functions in C++? (we would like to still use the ones we have so we dont have to change code)