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

Does CCS C compiler support functional prototypes?

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



Joined: 28 Mar 2008
Posts: 6
Location: 70 Industrial Way Wilmington, ma 01887

View user's profile Send private message Visit poster's website

Does CCS C compiler support functional prototypes?
PostPosted: Wed Apr 16, 2008 5:43 am     Reply with quote

Code:
void lcd_cmd( char cmd ); // subroutine for lcd commands
void Delay( unsigned int delay_count );

/****************************************************************************/
/***** LCD SUBROUTINE *****/

void Init_LCD( void ) // initialize LCD display
{
// 15mS delay after Vdd reaches nnVdc before proceeding with LCD initialization
// not always required and is based on system Vdd rise rate
Delay(Delay_15mS_Cnt); // 15ms delay


Error:

Executing: "C:\Program Files\PICC\Ccsc.exe" +FD "main_rtc.c" I+="C:\Microchip demo\h;C:\Microchip demo\other files" +DF +LN +T +A +M +Z +ICD +Y=0 +EA I+="..\h"
*** Error 112 "C:\Microchip demo\other files\lcd.c" Line 121(1,1): Function used but not defined: ... Delay SCR=985
1 Errors, 0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Wed Apr 16 07:28:03 2008

I am using CCS C version 4.071 with MPLAB 8.00.
Thanks
Ken

Sad
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

Re: Does CCS C compiler support functional prototypes?
PostPosted: Wed Apr 16, 2008 5:54 am     Reply with quote

The compiler did not issue any error about the functional prototype, so I think that is OK. What the error said was that the function was not defined. The functional prototype does not define a function. It only declares a function. You still have to supply the function code itself. That is the "definition" that is lacking.

Robert Scott
Real-Time Specialties
[/b]
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