Guest User

Untitled

a guest
Mar 24th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. // Class declaration
  2. class TScreen
  3. {
  4. private:
  5. std::unique_ptr<TProcess> m_process;
  6. public:
  7. __fastcall TScreen(int a, std::unique_ptr<TProcess> i_process);
  8. };
  9.  
  10. // The constructor definition
  11. __fastcall TScreen::TScreen(int a, std::unique_ptr<TProcess> i_process):
  12. m_process(std::move(i_process))
  13. {
  14. }
  15.  
  16. void TScreen_Main::CallScreen()
  17. {
  18. std::unique_ptr<TProcess> objprocess (new TProcess());
  19. std::unique_ptr<TScreen> objscreen (new TScreen(0, std::move(objprocess)));
  20. }
  21.  
  22. [ilink32 Error] Error: Unresolved external '__fastcall TScreen::TScreen(int, std::unique_ptr<TProcess, std::default_delete<TProcess> >)' referenced from TSCREEN_MAIN.OBJ
  23. [ilink32 Error] Error: Unable to perform link
Add Comment
Please, Sign In to add comment