V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
linux40
V2EX  ›  C

当编译 StrVec 中的 reserve、resize、reallocate 函数时 gcc 报了如下错误?

  •  
  •   linux40 · May 18, 2015 · 995 views
    This topic created in 4009 days ago, the information mentioned may be changed or developed.
    more undefined references to `StrVec::alloc' follow,而且这三个函数当中只出现一个函数的定义的话,则无错误,下面贴代码:


    第二个是StrVec.cc
    顺便求吐槽其他可以改进或改正的地方。
    Supplement 1  ·  May 19, 2015
    手机端看不了代码啊。。。
    Supplement 2  ·  May 19, 2015
    呃,能看
    Supplement 3  ·  May 19, 2015
    问题解决了
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:27 · PVG 16:27 · LAX 01:27 · JFK 04:27
    ♥ Do have faith in what you're doing.