View unanswered posts | View active topics It is currently Sun Nov 23, 2014 8:07 pm






Reply to topic  [ 7 posts ] 
RobotCIntrinsics.c fails to compile in V3.51 
Author Message
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post 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.


Attachments:
More_stinkin_errors.jpg
More_stinkin_errors.jpg [ 318.54 KiB | Viewed 2533 times ]

_________________
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
Profile WWW
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post 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
Profile WWW
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 613
Post 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
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post 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:
Attachment:
Learning_Color_Sorter.c [3 KiB]
Downloaded 211 times
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
Profile WWW
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post 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
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post 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
Profile WWW
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post 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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.