gpt4 book ai didi

c++ - Netbeans 远程 C++ 开发

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:58:16 25 4
gpt4 key购买 nike

我的 netbeans 项目是基于 windows 的 c++ 应用程序,在 Linux (VMware) 上编译。

项目需要使用一些额外的库进行编译。我添加到的路径和库名称项目属性中的常规、C++ 编译和链接器窗口。

编译结果为:

Copying project files to /root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/ at root@10.10.10.191:22
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
gmake[1]: Entering directory `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans2/audioLoader'
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/audioloader
gmake[2]: Entering directory `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans2/audioLoader'
mkdir -p dist/Debug/GNU-Linux-x86
g++ -m32 -o dist/Debug/GNU-Linux-x86/audioloader build/Debug/GNU-Linux-x86/_ext/341086193/CAudioFileLoaderControl.o build/Debug/GNU-Linux-x86/_ext/341086193/audioLoader.o -L../../dclib/ebsdk/lib -lEb -lEbOS
/usr/bin/ld: cannot find -lEb
collect2: ld returned 1 exit status
gmake[2]: *** [dist/Debug/GNU-Linux-x86/audioloader] Error 1
gmake[2]: Leaving directory `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans2/audioLoader'
gmake[1]: *** [.build-conf] Error 2
gmake[1]: Leaving directory `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans2/audioLoader'
gmake: *** [.build-impl] Error 2

意思是netbenas找不到我添加的库。

  1. 当我开始编译时,netbeans 将所有项目文件复制到它在 Linux 主机中创建的文件夹中。 (选中)

  2. 我提供的附加库路径仅复制 *.so 文件而不复制 *.a 文件 (已检查) .

如何解决这个问题?

最佳答案

这意味着链接器无法在路径 -L../../dclib/ebsdk/lib 上找到 libEb。这不是 netbeans 错误。

关于c++ - Netbeans 远程 C++ 开发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14475288/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com