flow linker errors

flow linker errors

Postby ezhoikam » Sat Nov 05, 2016 8:27 pm

Basically i have one scene class (AnaMenu) and one game (Oyun) class. Game class has pre_init, init, update, destroy functions. In these functions i call corresponding flow functions (like flow::update in Oyun::update).

And in init function i call scene with this code;
Code: Select all

    flow::show(new AnaMenu, [](Event * event)
        log::messageln("scene closed");

but when i try to compile i get linker errors;

Error LNK1120 9 unresolved externals

Warning LNK4098 defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

Error LNK2001 unresolved external symbol "protected: virtual class oxygine::intrusive_ptr<class oxygine::flow::Transition> __thiscall oxygine::flow::Scene::_runTransitionIn(class oxygine::flow::Flow *,class oxygine::intrusive_ptr<class oxygine::flow::Scene>)" (?_runTransitionIn@Scene@flow@oxygine@@MAE?AV?$intrusive_ptr@VTransition@flow@oxygine@@@3@PAVFlow@23@V?$intrusive_ptr@VScene@flow@oxygine@@@3@@Z)

and others are like the last one.

I didn't understand the exact problem. Because i can compile and run hello flow example.

Posts: 2
Joined: Sat Nov 05, 2016 8:17 pm

Re: flow linker errors

Postby admin » Sat Nov 05, 2016 11:17 pm

have you added oxygine-flow source files to your project?
User avatar
Site Admin
Posts: 768
Joined: Mon Oct 21, 2013 6:47 pm

Re: flow linker errors

Postby ezhoikam » Sun Nov 06, 2016 8:11 pm

Apparently adding files fixes everything, thanks!
Posts: 2
Joined: Sat Nov 05, 2016 8:17 pm

Return to oxygine-flow

Who is online

Users browsing this forum: No registered users and 1 guest