ROBOTC.net forums
http://www.robotc.net/forums/

Can you create a project?
http://www.robotc.net/forums/viewtopic.php?f=53&t=2567
Page 1 of 1

Author:  Eric [ Fri Sep 03, 2010 11:33 am ]
Post subject:  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?

Author:  mightor [ Fri Sep 03, 2010 12:01 pm ]
Post subject:  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

Author:  Eric [ Fri Sep 03, 2010 2:39 pm ]
Post subject:  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.

Author:  jbflot [ Fri Sep 03, 2010 2:44 pm ]
Post subject:  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.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/