View unanswered posts | View active topics It is currently Fri Oct 19, 2018 3:23 am






Reply to topic  [ 6 posts ] 
Header files and pragmas. 
Author Message
Novice

Joined: Tue Dec 11, 2012 9:19 pm
Posts: 58
Post Header files and pragmas.
#include'able pragmas were supposed to be in 4.x per a message
from Robomatter last year. However they don't seem to be working.

Please reference the following images, that show the header file
with pragmas and the compile error when #included in a source file.

Attachment:
pragma_ex_2.PNG
pragma_ex_2.PNG [ 11.49 KiB | Viewed 9014 times ]


Attachment:
pragma_ex_2.PNG
pragma_ex_2.PNG [ 11.49 KiB | Viewed 9014 times ]


Attachments:
pragma_ex_1.PNG
pragma_ex_1.PNG [ 15.25 KiB | Viewed 9014 times ]
Sun Nov 02, 2014 11:36 pm
Profile
Rookie

Joined: Wed Sep 10, 2014 9:53 am
Posts: 20
Post Re: Header files and pragmas.
This feature will be added with ROBOTC 4.27.

ROBOTC 4.27 is in the final stages of testing, and we hope to have it released some time this week. Please follow our blog (http://www.robotc.net/blog/) for updates.


Mon Nov 03, 2014 12:35 pm
Profile
Novice

Joined: Tue Dec 11, 2012 9:19 pm
Posts: 58
Post Re: Header files and pragmas.
jpalnick wrote:
This feature will be added with ROBOTC 4.27.

ROBOTC 4.27 is in the final stages of testing, and we hope to have it released some time this week. Please follow our blog (http://www.robotc.net/blog/) for updates.


For the record, the above error message is referring to servoOne being undefined in the source file when it is in fact in the pragma in the header file.


Tue Nov 04, 2014 3:49 pm
Profile
Rookie

Joined: Wed Sep 10, 2014 9:53 am
Posts: 20
Post Re: Header files and pragmas.
I have been informed by the ROBOTC developers that this feature, unfortunately, did not make it into ROBOTC 4.27. It is, however, going to be added to ROBOTC 4.28.


Thu Nov 06, 2014 11:27 am
Profile
Rookie

Joined: Wed May 07, 2014 7:51 pm
Posts: 6
Post Re: Header files and pragmas.
jpalnick wrote:
I have been informed by the ROBOTC developers that this feature, unfortunately, did not make it into ROBOTC 4.27. It is, however, going to be added to ROBOTC 4.28.

This still seems to not work in version 4.50 - any updates?


Mon Sep 07, 2015 11:58 pm
Profile
Rookie

Joined: Wed May 07, 2014 7:51 pm
Posts: 6
Post Re: Header files and pragmas.
It looks like this was implemented in version 4.29, from this post:

http://www.robotc.net/forums/viewtopic.php?p=33981#p33981

is the following info:

Quote:
#pragma config(UserModel, "../pragmas/my_robot_pragmas.h")

The path may be absolute or relative.


Fri Sep 11, 2015 9:17 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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:  



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