Connecting Tech Pros Worldwide Help | Site Map

C++ library

cwynnes@gmail.com
Guest
 
Posts: n/a
#1: Jul 23 '05
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

Victor Bazarov
Guest
 
Posts: n/a
#2: Jul 23 '05

re: C++ library


cwynnes@gmail.com wrote:[color=blue]
> Im doing a project where the C++ compiler requires access to the RS232[/color]

*Compiler* requires access? And how are you planning on achieving that
even with a library?
[color=blue]
> 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,[/color]

Have you tried www.google.com?
BigBrian
Guest
 
Posts: n/a
#3: Jul 23 '05

re: C++ library


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. Robert Tisdale
Guest
 
Posts: n/a
#4: Jul 23 '05

re: C++ library


Colm wrote:
[color=blue]
> 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.[/color]

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...ing-HOWTO.html

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