c++ - Expected class-name before '{' token -


when trying compile project header file (bobjr) code::blocks gives me error expected class-name before '{' token. wrong code?

#ifndef bobjr_h #define bobjr_h   class bobjr: public bob {     public:         bobjr(); };  #endif // bobjr_h 

this bobjr cpp:

#include "bobjr.h" #include "bob.h" #include <iostream>  bobjr::bobjr() {     //ctor } 

you're missing definition bob. either need in same header of need #include header declares bob before declaring bobjr


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -