开发者

make library not found

开发者 https://www.devze.com 2023-03-27 12:05 出处:网络
I\'m trying to compile a program using a third party library, Omnet++ in my case. Apparently \"make\" does not find a library, but the path开发者_如何转开发 it uses is correct as you can see (in the s

I'm trying to compile a program using a third party library, Omnet++ in my case. Apparently "make" does not find a library, but the path开发者_如何转开发 it uses is correct as you can see (in the sense that I can see the library under omnet++ source tree)

    pv135168:basic Bob$ opp_makemake    
Creating Makefile in /Users/Bob/Code/network_sim/basic... Makefile created, running "make depend" to add dependencies... opp_makedep -Y --objdirtree -I. -f Makefile -P\$O/ --   ./*.cc   

    pv135168:basic Bob$ make   
    g++ -c -g -Wall
        -fno-stack-protector   -m32  -DHAVE_PCAP -DXMLPARSER=libxml
        -DWITH_PARSIM -DWITH_NETBUILDER  -I.
        -I/Users/Bob/Code/omnetpp-4.1/include -o out/gcc-debug//txc1.o txc1.cc g++ -m32 -Wl,-rpath,/Users/Bob/Code/omnetpp-4.1/lib -Wl,-rpath,. -o out/gcc-debug//basic  out/gcc-debug//txc1.o  -Wl,-all_load  
        -L"/Users/Bob/Code/omnetpp-4.1/lib/gcc"
        -L"/Users/Bob/Code/omnetpp-4.1/lib" -u _tkenv_lib -lopptkenvd
        -loppenvird -lopplayoutd -u _cmdenv_lib -loppcmdenvd -loppenvird 
        -loppsimd -lstdc++   
     ld: library not found for -lopptkenvd   
    collect2: ld returned 1 exit status make: *** [out/gcc-debug//basic]   
    Error 1 pv135168:basic Bob$


It's looking in the following directories for a file called libopptkenvd.dylib or libopptkenvd.a:

/Users/Bob/Code/omnetpp-4.1/lib/gcc
/Users/Bob/Code/omnetpp-4.1/lib

Is that file in one of those directories (or in the standard directories like /usr/lib)? I don't see an indication of that in your output.

0

精彩评论

暂无评论...
验证码 换一张
取 消