View unanswered posts | View active topics It is currently Sun Dec 28, 2014 10:44 pm






Reply to topic  [ 3 posts ] 
"Syncing" #pragma configs 
Author Message
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post "Syncing" #pragma configs
As is well known, it is a good idea to put all your #pragma configs in a single header file, and include that file in your autonomous and tele-op programs: this way, you won't forget to make changes to one file when you modify your robot. However, I can't get code to compile when I do this. It might seem like something is compiling, but if you use something defined in a #pragma config, the code will break. It seems like #pragma configs have to be at the beginning of a file (before preprocessing) to have an effect. Can anyone confirm this?

_________________
FTC Team 6424, the 'Oly Cow - Chief programmer.
FRC Team 4450, Olympia Robotics Federation (ORF).

and also quadrotors. Quadrotors!


Wed Jul 24, 2013 9:50 pm
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1377
Post Re: "Syncing" #pragma configs
Ernest3.14 wrote:
It seems like #pragma configs have to be at the beginning of a file (before preprocessing) to have an effect. Can anyone confirm this?

Unfortunately, that's correct.


Thu Jul 25, 2013 4:45 am
Profile
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post Re: "Syncing" #pragma configs
Well... Ok :(

_________________
FTC Team 6424, the 'Oly Cow - Chief programmer.
FRC Team 4450, Olympia Robotics Federation (ORF).

and also quadrotors. Quadrotors!


Fri Jul 26, 2013 6:52 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.