Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Class declaration
- class TScreen
- {
- private:
- std::unique_ptr<TProcess> m_process;
- public:
- __fastcall TScreen(int a, std::unique_ptr<TProcess> i_process);
- };
- // The constructor definition
- __fastcall TScreen::TScreen(int a, std::unique_ptr<TProcess> i_process):
- m_process(std::move(i_process))
- {
- }
- void TScreen_Main::CallScreen()
- {
- std::unique_ptr<TProcess> objprocess (new TProcess());
- std::unique_ptr<TScreen> objscreen (new TScreen(0, std::move(objprocess)));
- }
- [ilink32 Error] Error: Unresolved external '__fastcall TScreen::TScreen(int, std::unique_ptr<TProcess, std::default_delete<TProcess> >)' referenced from TSCREEN_MAIN.OBJ
- [ilink32 Error] Error: Unable to perform link
Add Comment
Please, Sign In to add comment