Skip to content

00-first-demo的Makefile中需要链接tbox-coroutine库, 不然编译不过 #4

@heipi666

Description

@heipi666

g++ -o demo -L/root/.tbox/lib -rdynamic -ltbox_main -ltbox_trace -ltbox_terminal -ltbox_network -ltbox_eventx -ltbox_event -ltbox_log -ltbox_util -ltbox_base -lpthread -ldl
/usr/bin/ld: /root/.tbox/lib/libtbox_main.a(context_imp.o): in function tbox::main::ContextImp::ContextImp()': context_imp.cpp:(.text+0x985): undefined reference to tbox::coroutine::Scheduler::Scheduler(tbox::event::Loop*)'
/usr/bin/ld: /root/.tbox/lib/libtbox_main.a(context_imp.o): in function tbox::main::ContextImp::cleanup()': context_imp.cpp:(.text+0x110d): undefined reference to tbox::coroutine::Scheduler::cleanup()'
collect2: error: ld returned 1 exit status
make: *** [Makefile:8: demo] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions