View unanswered posts | View active topics It is currently Fri Nov 28, 2014 3:17 pm






Reply to topic  [ 4 posts ] 
Can you create a project? 
Author Message
Rookie

Joined: Thu Sep 02, 2010 9:06 pm
Posts: 7
Post Can you create a project?
I have been playing with the RobotC client software. It is a very nice program with lots of help for the API and programing concepts. One thing I am not seeing is setting up a project so you can compile and link multiple .c files in a single program. I only seem to be able to build one file at a time. Is this supported?


Fri Sep 03, 2010 11:33 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3295
Location: Rotterdam, The Netherlands
Post Re: Can you create a project?
There is no precompiler or make mechanism in ROBOTC. You can use the #include to, well, include other .c or .h files. Beware though, that files cannot be included twice in your program or the compiler will choke and die.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Sep 03, 2010 12:01 pm
Profile WWW
Rookie

Joined: Thu Sep 02, 2010 9:06 pm
Posts: 7
Post Re: Can you create a project?
So I will need to do something like

#include "myfile.c"

to add another c file. That works for me, at the most there will be one more .c file.


Fri Sep 03, 2010 2:39 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Can you create a project?
Hi Eric -

You can include multiple files using #include "filename"

In addition to that, two things that may be helpful to you are the Solution Explorer:
Image

and the Directories preferences:
Image

To view the Directories preferences, go to Window > Menu Level > and select Expert. Then go to View > Preferences > Detailed Preferences.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Fri Sep 03, 2010 2:44 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.