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

Error while compiling...

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



Joined: 03 Feb 2012
Posts: 29

View user's profile Send private message

Error while compiling...
PostPosted: Mon Jan 21, 2013 6:15 am     Reply with quote

Haiiiiiiii...
Can anybody please explain what the error like " List index out of Bounds 49 " is? This is repeated for any project after compiling....
temtronic



Joined: 01 Jul 2010
Posts: 9163
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jan 21, 2013 6:22 am     Reply with quote

You should supply us a very small compilable program that gives this error,the compiler version and PIC type.
This information is necessary to answer your query
lor3nzo



Joined: 19 Jan 2014
Posts: 4

View user's profile Send private message

PostPosted: Sun Jan 19, 2014 10:13 am     Reply with quote

I have the same problem with this small code
Code:
#include <18F45K22.h>

void main()
{
}
temtronic



Joined: 01 Jul 2010
Posts: 9163
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Jan 19, 2014 10:21 am     Reply with quote

compiler version ???

I used an 18F46k22 PIC...

It compiles fine for me(succeeds).
>>> Warning 208 "46k22_base.c" Line 2(1,5): Function not void and does not return a value main
Memory usage: ROM=0% RAM=0% - 0%
0 Errors, 1 Warnings.
Loaded C:\Program Files\PICC\18f46k22\46k22_base.cof.
BUILD SUCCEEDED: Sun Jan 19 11:21:39 2014

though the warning refers to 'main' being a function

hth
jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19333

View user's profile Send private message

PostPosted: Mon Jan 20, 2014 2:27 am     Reply with quote

There was a single compiler update in mid 2011, that did this for some people. It was replaced in only a couple of days with a working version.
It's an error from the language the compiler is written 'in', not the compiler itself, and depended on how the compiler was installed. A default clean install into the standard locations worked OK.

So 'compiler version'?. Do a re-install.
lor3nzo



Joined: 19 Jan 2014
Posts: 4

View user's profile Send private message

PostPosted: Mon Jan 20, 2014 2:36 am     Reply with quote

Compiler version is 4.120.
I found that if I try to compile a file created months ago the problem doesn't occur. If I rename that file and try to compile it the problem occurs.
Ttelmah



Joined: 11 Mar 2010
Posts: 19333

View user's profile Send private message

PostPosted: Mon Jan 20, 2014 2:47 am     Reply with quote

That would be about right on the compiler version. Mid 2011'ish.
I don't think anyone ever worked out why it happened. A few people had it, but no-one else did. It might be something to do with the default file permissions/ownership.
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