C++ library

C

cwynnes

Hey,

Im doing a project where the C++ compiler requires access to the RS232
port, I was told i need to get a RS232 library for this but i have no
idea where i can find this and even if found one i wouldnt know what im
looking at, If anyone could please help me on what I could need or
where to go about looking for this library it would be greatly
appreciated,

Regards,

Colm
 
V

Victor Bazarov

Im doing a project where the C++ compiler requires access to the RS232

*Compiler* requires access? And how are you planning on achieving that
even with a library?
port, I was told i need to get a RS232 library for this but i have no
idea where i can find this and even if found one i wouldnt know what im
looking at, If anyone could please help me on what I could need or
where to go about looking for this library it would be greatly
appreciated,

Have you tried www.google.com?
 
B

BigBrian

I'm assuming that you want to write an application which talks to the
RS232, and you don't really need the complier to access the RS232 like
your post says.

I/O to the serial port is platform specific, and thus off topic in this
newsgroup. But, I've written code which talks to the RS232 port on
Solaris. The code was something like ....

int fd;
fd = open( "/dev/term/a",O_RDWR|O_NONBLOCK);

while(true)
{
int status;
ioctl(fd, TIOCMGET,&status);

// check status to see which RS232 lines are set and do appriopriate
stuff
}

-Brian
 
E

E. Robert Tisdale

Colm said:
I'm doing a project
where the C++ compiler requires access to the RS232 port.
I was told [that] I need to get a RS232 library for this
but I have no idea where I can find this
and, even if found one, I wouldn't know what I'm looking at.
If anyone could please help me on what I could need
or where to go about looking for this library,
it would be greatly appreciated.

I used Google

http://www.google.com/

to search for

+"Linux Serial HowTo"

and I found lots of stuff including
"Serial Programming HOWTO"

http://www.faqs.org/docs/Linux-HOWTO/Serial-Programming-HOWTO.html

You really need to ask this question in a [newsgroup] forum
for your operating system.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,667
Latest member
DaniloB294

Latest Threads

Top