View unanswered posts | View active topics It is currently Fri Nov 28, 2014 9:28 am






Reply to topic  [ 1 post ] 
error finding with #include command 
Author Message
Rookie

Joined: Thu Mar 13, 2014 6:12 am
Posts: 18
Post error finding with #include command
Hello,

I would recommend imputing a feature into RobotC that allows users to figure out what programme has the errors in it, when a programme has the #include command in it. Currently, any errors in 'programme2' appear in 'programme1' (which has thecode below in it)
Code:
#include "programme2"

show up as on line "16.(line that the error is on in 'programme2', with the units digit representing the thousandths digit)"! E.g.

Code:
//programme1

#include "programme2"

task main()
{
motor(motorB) = 0;
}

//programme2

#pragma systemfile

task main()
{
test
}

When you compile programme1, the following errors are received:
16.005 X **Error**:Undefined variable 'test'. 'short' assumed.
16.005 X *Warning*:';' expected before '}'. Automatically inserted by compiler
16.005 X *Warning*:Meaningless statement -- no code generated
3 X **Error**:Duplicate definition for task 'main'.

I would recommend inputting a feature that would make the number which says which line the error is on look like this:
(Number tab of the 'errored' programme).(line with the error)
or, as an example, this: 2.005. With this edit, the above errors would look like this:
2.005 X **Error**:Undefined variable 'test'. 'short' assumed.
2.005 X *Warning*:';' expected before '}'. Automatically inserted by compiler
2.005 X *Warning*:Meaningless statement -- no code generated
3 X **Error**:Duplicate definition for task 'main'.


Sat Jul 19, 2014 4:49 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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:  



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