Thread: Adding a class

  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    37

    Cool Adding a class

    Happy coding all!

    any pros out there that may now how to debug this

    ||=== openGL, Debug ===|
    C:\code blocks\openGL\src\promow.cpp|1|error: promow.h: No such file or directory|
    C:\code blocks\openGL\src\promow.cpp|3|error: 'promow' has not been declared|
    C:\code blocks\openGL\src\promow.cpp|3|error: ISO C++ forbids declaration of 'promow' with no type|
    C:\code blocks\openGL\src\promow.cpp||In function 'int promow()':|
    C:\code blocks\openGL\src\promow.cpp|6|warning: no return statement in function returning non-void|
    C:\code blocks\openGL\src\promow.cpp|8|error: expected constructor, destructor, or type conversion before '::' token|
    ||=== Build finished: 4 errors, 1 warnings ===|

    What i am trying to do is add an existing c++solution as a class file
    to .c program in code blocks ?

  2. #2
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Find the path containing promow.h, and add that to the include paths of your project.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. adding method to STL class
    By MK27 in forum C++ Programming
    Replies: 5
    Last Post: 03-28-2010, 04:13 AM
  2. Adding iterators to a class template
    By skewray in forum C++ Programming
    Replies: 8
    Last Post: 01-03-2008, 11:33 PM
  3. Replies: 2
    Last Post: 11-04-2007, 12:55 PM
  4. Replies: 7
    Last Post: 05-26-2005, 10:48 AM
  5. Template <class T1, class T2, class T3> error LNK2019
    By JonAntoine in forum C++ Programming
    Replies: 9
    Last Post: 10-11-2004, 12:25 PM