Multi-file program in NXC

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Multi-file program in NXC

Post by mattallen37 »

I comment out the main task once I know that the library compiles fine, and then I #include it into the program I want to use it in.

Edit: make sure you save it before you try to #include it in a program. It will only #include the latest saved file.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
fuzzball27
Posts: 103
Joined: 29 Sep 2010, 17:14
Location: US

Re: Multi-file program in NXC

Post by fuzzball27 »

Thanks for the help! I'll give it a shot today.
fuzzball27 >>-->
fuzzball27
Posts: 103
Joined: 29 Sep 2010, 17:14
Location: US

Re: Multi-file program in NXC

Post by fuzzball27 »

Things have been working great! Everything is running as expected. Thanks again.
fuzzball27 >>-->
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Multi-file program in NXC

Post by mattallen37 »

Great to hear it, and you're welcome. What are you doing with it?
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests