Skip to content

编译运行报错 #8

@fowuyu

Description

@fowuyu

我的命令是:g++ -std=c++11 main.c -o main
/tmp/ccXS7Q7e.o:在函数‘main’中:
main.cpp:(.text+0x3ca):对‘BlockAllocator::BlockAllocator()’未定义的引用
main.cpp:(.text+0x3e3):对‘AStar::AStar(BlockAllocator*)’未定义的引用
main.cpp:(.text+0x403):对‘AStar::find(AStar::Params const&)’未定义的引用
main.cpp:(.text+0x426):对‘AStar::~AStar()’未定义的引用
main.cpp:(.text+0x435):对‘BlockAllocator::~BlockAllocator()’未定义的引用
main.cpp:(.text+0x469):对‘AStar::~AStar()’未定义的引用
main.cpp:(.text+0x47d):对‘BlockAllocator::~BlockAllocator()’未定义的引用

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions