I suspect that this is not by design. I've been unable to find a work around by, e.g., making PControllerOfMotor and PMtrOf functions rather than macros. Indeed, if one does that (see the second attached file), one gets the following errors:

FWIW: This is RobotC v3.51 running on Win7 64 bit, with a platform type of NXT + Tetrix/Matrix. These bugs are currently stalling our team's migration to 3.51 (though 3.08 does still seem to work for us).

This sound like bug #8 I reported.viewtopic.php?f=63&t=4882I think the RobotC folks are working on it. My team is blocked on this too. In the meantime, I am exploring workarounds for this issue. One thing I am thinking of experimenting is that if I assume the issue is with macros, we could rewrite the macros to be functions instead. I am going to try that tonight and see if that will avoid this bug completely.

Wed Sep 26, 2012 7:30 pm

tfriez

Site Admin

Joined: Wed Jan 24, 2007 10:42 amPosts: 620

Re: Internal Compiler errors in v3.51

This is very similar to the issue the MHTS posted previously.

We're currently working on a resolution and will be releasing a BETA (private first, then public) within the next one to two weeks to resolve the issue.

BTW, I was able to avoid bug 8 converting the offending macros into functions. However, after playing with it some more I found Bug 9 (viewtopic.php?f=63&t=4910). But it's a warning and seems to still work correctly. So I think I am unblocked for now (until I found the next blocking bug )

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum