NO

Author Topic: RS232 communication using Pelles C  (Read 4446 times)

Yadav

  • Guest
RS232 communication using Pelles C
« on: May 20, 2013, 07:06:36 PM »
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

  • Guest
Re: RS232 communication using Pelles C
« Reply #1 on: May 20, 2013, 11:19:04 PM »
where is your main()?

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 772
Re: RS232 communication using Pelles C
« Reply #2 on: May 21, 2013, 01:50:21 AM »
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

  • Guest
Re: RS232 communication using Pelles C
« Reply #3 on: May 21, 2013, 04:08:38 AM »
M sorry guys I dono H i missed my main function..... ::) I have attached the main function in the post.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: RS232 communication using Pelles C
« Reply #4 on: May 21, 2013, 01:43:15 PM »
« Last Edit: May 21, 2013, 01:51:55 PM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Yadav

  • Guest
Re: RS232 communication using Pelles C
« Reply #5 on: May 22, 2013, 07:00:20 AM »
Thx frankie. I shall try the code in the link.