RS232 communication using Pelles C

Started by Yadav, May 20, 2013, 07:06:36 PM

Previous topic - Next topic

Yadav

Hi Folks,
              I was trying to communicate my microcontroller with my PC using RS232 protocol. I found the code attached with the post on the web and thought it was pretty good for a start and tried to compile it but I am getting the following errors. Kindly help!!!!! :-X

POLINK: error: Unresolved external symbol '_RS232_OpenComport'.
POLINK: error: Unresolved external symbol '_RS232_PollComport'.
POLINK: fatal error: 2 unresolved external(s).
*** Error code: 1 ***

czerny


Bitbeisser

First off all, there is a simple way to include all project files into a single ZIP file to upload to the forum... ;)
(right-click on the executable name in the right-hand project pane and select "ZIP project files")

That said, as czerny already mentioned, the .c file is incomplete, as a matter of fact, pretty much all the code in it is irrelevant as it is within the huge #ifdef Linux section....

In general, as Pelle's C is a Windows only compiler, you need to look for Windows specific API's to access any serial port, as you do not have direct hardware access to any of the required ports...

Ralf

Yadav

M sorry guys I dono H i missed my main function..... ::) I have attached the main function in the post.

frankie

#4
Try this project Serial Port Control by DMac
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Yadav

Thx frankie. I shall try the code in the link.