View Single Post
  #5   Spotlight this post!  
Unread 28-01-2009, 18:02
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: define a new class(C++)

Your question is still a little confusing. Do you see the files that you created in the tree on the left? If not, follow the instructions below.

If you're creating files from scratch, right click on the project and go to add new file (don't remember the exact command). This will add an empty file to your project directory.

If you already created the files, you can copy them into your project directory just like you would any other file (via Windows Explorer, shell, etc). You will then need to right click on the project and go to refresh in order for the files to show up in the tree.

If the files are in the source tree, does the compiler attempt to build them? If you intentionally add a syntax error does the compiler catch it? If not, check the build target in the tree (I think it's green) and check to see if it is picking up all files in your project.

Are you adding a #include or forward declaration in the files that use the classes?

If there are compiler errors that you are getting, it would be helpful for you to post them here. That way people will be able to help you pinpoint your problem.
Reply With Quote