Thread: dev c++ project option

  1. #1
    Registered User
    Join Date
    Aug 2005

    dev c++ project option

    i made a project file in dev c++ and i created a header file with a class inside(called pstudent.h) and another file named pmain.cpp, in my pmain.cpp i try to make a object called rod,,like this
    pstudent rod;
    but it said function is undeclared, i put the header file in the same project as would i get this to work without putting pstudent.h class inside my pmain.cpp?

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    United States
    This error means that you didn't declare a default constructor (a constructor that takes no parameters), and then tried to use one in your code.

  3. #3
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Also, make sure that you
    #include "pstudent.h"
    When using a header file that is not of the standard C++ library, you use quotes instead of < >.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 12-06-2008, 07:54 PM
  2. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  3. Please, suggest a project .
    By Dragon227Slayer in forum Tech Board
    Replies: 1
    Last Post: 06-12-2004, 10:48 AM
  4. Remove ActiveX from VC++ project
    By cr_naik in forum Windows Programming
    Replies: 2
    Last Post: 07-02-2003, 11:15 AM
  5. Another question on classes
    By hpy_gilmore8 in forum C++ Programming
    Replies: 26
    Last Post: 05-24-2003, 09:11 AM