Page 1 of 1

flow linker errors

PostPosted: Sat Nov 05, 2016 8:27 pm
by ezhoikam
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::init();

    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.

Thanks.

Re: flow linker errors

PostPosted: Sat Nov 05, 2016 11:17 pm
by admin
have you added oxygine-flow source files to your project?

Re: flow linker errors

PostPosted: Sun Nov 06, 2016 8:11 pm
by ezhoikam
Apparently adding files fixes everything, thanks!