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

Error "No filename for '#include' directive" JoystickDriver
http://robotc.net/forums/viewtopic.php?f=52&t=5343
Page 1 of 1

Author:  cookthebook [ Wed Jan 09, 2013 11:53 pm ]
Post subject:  Error "No filename for '#include' directive" JoystickDriver

In my teleop I included #include JoystickDriver.c in my code but it could not find the program, so I looked for it in my files and I found it. Why can't the program find the JoystickDriver? I did not move the file from the original spot or edit the file in any way, please help.

Author:  amcerbu [ Thu Jan 10, 2013 3:07 am ]
Post subject:  Re: Error "No filename for '#include' directive" JoystickDri

You have to surround the name of the driver with quotes in order for the compiler to recognize it as a file name.
Code:
#include "JoystickDriver.c"

Author:  cookthebook [ Thu Jan 10, 2013 9:03 am ]
Post subject:  Re: Error "No filename for '#include' directive" JoystickDri

Thank you, I'm not getting the error anymore.

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