Netbeans远程c++;发展 我的NETBUS项目是基于Windows的C++应用程序,在Linux上编译(vMware)。

Netbeans远程c++;发展 我的NETBUS项目是基于Windows的C++应用程序,在Linux上编译(vMware)。,c++,compilation,netbeans-7,remote-debugging,C++,Compilation,Netbeans 7,Remote Debugging,项目需要使用一些额外的库进行编译。我添加到的路径和库名称 项目属性中的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[

项目需要使用一些额外的库进行编译。我添加到的路径和库名称 项目属性中的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找不到我添加的库

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

  • 从添加库路径中,我提供它只复制
    *.so
    文件,而不复制
    *.a
    文件(选中)


  • 如何解决此问题?

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