CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

EX_FLOAT.C Compile problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Jerry R



Joined: 25 Apr 2007
Posts: 23

View user's profile Send private message

EX_FLOAT.C Compile problem
PostPosted: Wed Apr 25, 2007 9:07 am     Reply with quote

I'm having problems compiling EX_FLOAT.C and my own code when I include input.c. Compile stops at the below point insdie input.c:

#include <ctype.h>

BYTE gethex1() {
char digit;

digit = getc(

Undefined identifier -- getch

Using PCWH v 3.249

I know the problem is super simple, but I don't see it! Help is much appreciated!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 25, 2007 11:42 am     Reply with quote

This will happen if you comment out the #use rs232() statement in
the Ex_Float.c file. If the compiler doesn't have the UART library
code included, then it doesn't know what getch means.

This is the line:
Code:
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
Guest








PostPosted: Thu Apr 26, 2007 8:08 am     Reply with quote

PCM programmer:

Thanks for the reply. Yes, I caught that yesterday. What a big DUH!

I appreciate your reply!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group