Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Error LNK1120 2 unresolved externals
  2.  
  3. Error LNK2019 unresolved external symbol "public: __cdecl GameWindow::GameWindow(void)" (??0GameWindow@@QEAA@XZ) referenced in function "public: __cdecl Game::Game(void)" (??0Game@@QEAA@XZ)
  4.  
  5. Error LNK2019 unresolved external symbol "public: __cdecl GameWindow::~GameWindow(void)" (??1GameWindow@@QEAA@XZ) referenced in function "public: __cdecl Game::~Game(void)" (??1Game@@QEAA@XZ)
  6.  
  7. #pragma once
  8.  
  9. class GameWindow
  10. {
  11. public:
  12.  
  13. GameWindow();
  14. ~GameWindow();
  15. };
  16.  
  17. #include "GameWindow.h"
  18.  
  19. GameWindow::GameWindow()
  20. {
  21. }
  22.  
  23. GameWindow::~GameWindow()
  24. {
  25. }
  26.  
  27. #pragma once
  28.  
  29. #include "GameWindow.h"
  30.  
  31. class Game
  32. {
  33. public:
  34.  
  35. Game();
  36. ~Game();
  37.  
  38. private:
  39.  
  40. GameWindow window;
  41. };
  42.  
  43. #include "Game.h"
  44.  
  45. Game::Game()
  46. {
  47. }
  48.  
  49. Game::~Game()
  50. {
  51. }
  52.  
  53. #include "Game.h"
  54.  
  55. int main(int argc, char* argv[])
  56. {
  57. Game game;
  58. return 0;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement