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

2 CCS's 2 different outcomes :S

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



Joined: 26 Aug 2011
Posts: 3
Location: United Kingdom

View user's profile Send private message

2 CCS's 2 different outcomes :S
PostPosted: Fri Aug 26, 2011 12:39 pm     Reply with quote

Hi,

I have CCS on my work machine and on my home machine, both are 4.124.
One machine is Windows 7 and the other is XP Pro.

On my windows 7 home machine I can compile
Code:

void Draw_Screen(int options, char *s1,*s2,*s3)
{
   empty_screen();
}

void main()
{
        draw_screen(MENU,"STOP","---","---");
}


All is fine, runs like a dream, used that method for ages.

On the XP machine, same code, same compiler, same command line options fails with "cannot make a pointer to a constant" on the call to draw_screen

:S what the heck am I doing wrong?

PS both are being called from MPLAB 8.73 same options

I seem to recall an option that could be set to enable strings to be passed in functions but can't for the life of me find it now, I am guessing one has that option and one not.
foxabilo



Joined: 26 Aug 2011
Posts: 3
Location: United Kingdom

View user's profile Send private message

PostPosted: Fri Aug 26, 2011 12:46 pm     Reply with quote

Ahhh hah!

2 different locations for the pic definition .h file one without

DEVICE=PASS_STRINGS_IN_RAM


Smile

Fixed
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