Advertisement
Guest User

Confused by cpp classes

a guest
Aug 12th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement