View Single Post
  #16   Spotlight this post!  
Unread 02-11-2010, 13:21
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
Re: define a new class(C++)

What he meant is to put Gamepad.h & Gamepad.cpp in the same folder as your robot code, which I believe is what you did. I believe you also have to refresh the file tree on the left by right clicking and selecting Refresh (going from memory here) so the files appear there and Windriver knows to include them in the build. As Dave suggested before, add a syntax error to Gamepad.ccp and build the project. If the build fails because of that error, you know it's getting compiled in. Once you know that, you can go ahead and use the class.
Reply With Quote