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

Problem whit #define

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



Joined: 16 Aug 2005
Posts: 1

View user's profile Send private message

Problem whit #define
PostPosted: Tue Aug 16, 2005 11:16 am     Reply with quote

I´m use LCD.C library, and my sourse code is

#include <16F877.h>
#use delay(clock=4000000)
#fuses XT,NOWDT
#define "lcd.rw" 48
#define "lcd.rs" 49
......

error: duplicate #define

lcd.rw, lcd.rs, are a struct the LCD.C
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Tue Aug 16, 2005 2:50 pm     Reply with quote

Try without the quotes and without the dot. E.g.:
Code:

#define lcd_rw 48
#define lcd_rs 49
...
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