View previous topic :: View next topic |
Author |
Message |
manisha
Joined: 03 Feb 2012 Posts: 29
|
Error while compiling... |
Posted: Mon Jan 21, 2013 6:15 am |
|
|
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: 9221 Location: Greensville,Ontario
|
|
Posted: Mon Jan 21, 2013 6:22 am |
|
|
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
|
|
Posted: Sun Jan 19, 2014 10:13 am |
|
|
I have the same problem with this small code
Code: | #include <18F45K22.h>
void main()
{
}
|
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9221 Location: Greensville,Ontario
|
|
Posted: Sun Jan 19, 2014 10:21 am |
|
|
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: 19499
|
|
Posted: Mon Jan 20, 2014 2:27 am |
|
|
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
|
|
Posted: Mon Jan 20, 2014 2:36 am |
|
|
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: 19499
|
|
Posted: Mon Jan 20, 2014 2:47 am |
|
|
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. |
|
|
|