Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
xiaoye5200
V2EX  ›  Linux

make出错,是什么问题呢

  •  
  •   xiaoye5200 · Apr 25, 2013 · 4358 views
    This topic created in 4806 days ago, the information mentioned may be changed or developed.
    cd build && ar rc libpbc.a ../build/o/context.o ../build/o/varint.o ../build/o/array.o ../build/o/pattern.o ../build/o/register.o ../build/o/proto.o ../build/o/map.o ../build/o/alloc.o ../build/o/rmessage.o ../build/o/wmessage.o ../build/o/bootstrap.o ../build/o/stringpool.o ../build/o/decode.o
    cd build && gcc -g3 -fPIC -I.. -L. -o addressbook ../test/addressbook.c -lpbc
    ../test/addressbook.c:1:0: 警告:-fPIC 在目标机上被忽略(所有代码都是与位置无关的)
    ./libpbc.a: could not read symbols: 归档没有索引;运行 ranlib 以添加一个
    collect2: ld 返回 1
    Makefile:66: recipe for target `build/addressbook' failed
    make: *** [build/addressbook] Error 1
    1 replies    1970-01-01 08:00:00 +08:00
    xiaoye5200
        1
    xiaoye5200  
    OP
       Apr 25, 2013
    已经解决。复制了之前的so导致无法识别
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5861 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 02:20 · PVG 10:20 · LAX 19:20 · JFK 22:20
    ♥ Do have faith in what you're doing.