daily pastebin goal
10%
SHARE
TWEET

Confused by cpp classes

a guest Aug 12th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SongController.h:
  2.     #ifndef CONFIG_H
  3.     #define CONFIG_H
  4.     #include "Song.h"
  5.  
  6.     class SongController
  7.     {
  8.         public:
  9.         Song song;
  10.         SongController();
  11.    
  12.     };
  13.  
  14.  
  15. Song.h:
  16.     #ifndef CONFIG_H
  17.     #define CONFIG_H
  18.     class Song
  19.     {
  20.         public:
  21.         Song();
  22.     };
  23.  
  24. The cpp files simply include their respective header file and define blank functions.
  25. Despite this, I am getting:
  26.     SongController.h error: 'Song' does not name a type
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top