Can't see header

This is a discussion on Can't see header within the C++ Programming forums, part of the General Programming Boards category; I'm using MSVC++ 6.0 and I have created a class. The declaration is in a .hpp file and the implementation ...

  1. #1
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Trefforest
    Posts
    368

    Can't see header

    I'm using MSVC++ 6.0 and I have created a class. The declaration is in a .hpp file and the implementation is in a .cpp file. Both files have been manually added to the project and the .hpp file is included in the main file. Yet it won't build as it says my class is not a class or namespace. The compiler can clearly find the header file (because it's not saying it can't) but still the class declaration cannot be seen by the compiler.

    I'm tearing my hair out - as far as I'm aware I've done everything necessary and it just refuses to build.

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,793
    Show us some code (stripped down if necessary but something that still demonstrates the same error you are getting). Also include the exact error messages that are displayed.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21