首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Netbeans远程c++开发

Netbeans远程c++开发
EN

Stack Overflow用户
提问于 2013-01-23 08:29:14
回答 1查看 806关注 0票数 2

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

项目需要使用其他库进行编译。我在项目属性中添加到通用、C++编译和链接器窗口中的路径和库名。

编译结果是:

代码语言:javascript
复制
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文件(选中)。

如何解决这一问题?

EN

回答 1

Stack Overflow用户

发布于 2013-10-25 18:02:00

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14475288

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档