|
Page 1 of 1
|
[ 7 posts ] |
|
RobotCIntrinsics.c fails to compile in V3.51
Author |
Message |
NeXT-Generation
Senior Roboticist
Joined: Wed Sep 28, 2011 10:13 pm Posts: 630 Location: If I told you, I'd have to kill you.
|
 RobotCIntrinsics.c fails to compile in V3.51
I can not download any programs with 3.51 because of one 'stinkin error in RobotCIntrinsics.c. This happens with programs that don't even use the display. The other errors I can handle, but I don't get this at all.
_________________A.K.A. inxt-generation Self-proclaimed genius, and future world dominator. My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth Doctor Bow down to Nikola Tesla, King of the Geek Gods.
|
Sat Sep 22, 2012 11:25 am |
|
 |
NeXT-Generation
Senior Roboticist
Joined: Wed Sep 28, 2011 10:13 pm Posts: 630 Location: If I told you, I'd have to kill you.
|
 Re: RobotCIntrinsics.c fails to compile in V3.51
Well... That's odd... I decided to try and fix some other errors, and now this one doesn't appear anymore. I haven't changed anything in the programs yet, though. Forget I asked this.
EDIT: Okay, this is even weirder. That error only appears when I compile the learning sorter program. If I don't, then everything else is fine. If I do, then the error appears in all programs.
_________________A.K.A. inxt-generation Self-proclaimed genius, and future world dominator. My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth Doctor Bow down to Nikola Tesla, King of the Geek Gods.
|
Sat Sep 22, 2012 11:50 am |
|
 |
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 620
|
 Re: RobotCIntrinsics.c fails to compile in V3.51
We haven't experience this issue in testing... If you're able to find a way to reproduce the issue, let us know. Thanks!
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
Sat Sep 22, 2012 7:43 pm |
|
 |
NeXT-Generation
Senior Roboticist
Joined: Wed Sep 28, 2011 10:13 pm Posts: 630 Location: If I told you, I'd have to kill you.
|
 Re: RobotCIntrinsics.c fails to compile in V3.51
Okay, here's what happens: I compile any piece of code. It comes out fine, except for the ones that have required updating. Then, I compile this file: and I get the error "**Error**:Intrinsic function ASM command 'variableRefCharPtr(pChar)' evaluates to undefined value". After I compile that code, everything I try to compile after it has the same error, even though it was fine before. This persists until I restart RobotC. I'm also getting an error about not having enough memory for a temporary variable? "**Severe*:Not enought memory to allocate temporary variable". The compiled code is only 1.5 kilobytes.
_________________A.K.A. inxt-generation Self-proclaimed genius, and future world dominator. My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth Doctor Bow down to Nikola Tesla, King of the Geek Gods.
|
Sat Sep 22, 2012 9:27 pm |
|
 |
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 616
|
 Re: RobotCIntrinsics.c fails to compile in V3.51
ROBOTC compiler has a save "precompiled header" function to minimize the time to recompile; it's similar to one in Visual Studio. What it does is ave the results of the compilation of header files, including "robotcintrinsics.c" so that they don't have to be recompiled on subsequent compiles. The precompiled header is discarded whenever the platform type is changed to a different type.
The bug is that if on the first compile, there's an error in the header files, then this error will continue to reappear. The compiler should recognize this case and not save the precompiled header. This will be fixed in a subsequent release.
The second bug is that the error in 'sorter" program is likely incorrect.
The workaround, when this problem occus, is to exit and re-enter ROBOTC.
|
Mon Sep 24, 2012 3:16 pm |
|
 |
NeXT-Generation
Senior Roboticist
Joined: Wed Sep 28, 2011 10:13 pm Posts: 630 Location: If I told you, I'd have to kill you.
|
 Re: RobotCIntrinsics.c fails to compile in V3.51
Thanks Dick. Guess I'll just wait 'till the next release, because I'm certainly not going to restart RobotC for every recompile to try and work out what's causing it.
_________________A.K.A. inxt-generation Self-proclaimed genius, and future world dominator. My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth Doctor Bow down to Nikola Tesla, King of the Geek Gods.
|
Mon Sep 24, 2012 9:29 pm |
|
 |
NeXT-Generation
Senior Roboticist
Joined: Wed Sep 28, 2011 10:13 pm Posts: 630 Location: If I told you, I'd have to kill you.
|
 Re: RobotCIntrinsics.c fails to compile in V3.51
Sorry to bring back this moderately old topic. Just an update, I'm using the exact same code as I was trying here with 3.54, and now it's working just like it use to.
Thanks for fixing that.
_________________A.K.A. inxt-generation Self-proclaimed genius, and future world dominator. My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth Doctor Bow down to Nikola Tesla, King of the Geek Gods.
|
Fri Nov 09, 2012 10:57 pm |
|
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
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 post attachments in this forum
|
|