Matlab Kalman / usr / bin / ld:找不到-lstdc ++

时间:2012-11-02 12:18:53

标签: gcc matlab-compiler

我正在Matlab帮助中关注kalman编码器Matlab教程。使用codegen时,会出现以下错误:

  

/ usr / bin / ld:找不到-lstdc ++

     

collect2:ld返回1退出状态

libstdc++.so.6/lib/

中有/usr/lib

4 个答案:

答案 0 :(得分:41)

对于Fedora 16使用:

sudo yum install libstdc++-static

答案 1 :(得分:4)

如果您正在 64位CentOS 7 上编译 32位应用程序:

spyOn(superagent, 'get').and.callFake(function(url) {
  return {
    end: function(cb) {
      //null for no error, and object to mirror how a response would look.
      cb(null, {body: data});
    }
  }
});

答案 2 :(得分:3)

我做了 public class SampleHandler<IWorkspace> extends AbstractHandler { public SampleHandler() { } public Object execute(ExecutionEvent event) throws ExecutionException { String pagetitle = ""; String worspacelocation = ""; try{ //salvo in workspacelocation il path del workspace worspacelocation =ResourcesPlugin.getWorkspace().getRoot().getLocation().toString(); } catch (Exception e) { JFrame frame = new JFrame("Workspace Location Error"); JOptionPane.showMessageDialog(frame,"Impossibile determinare il workspace"); e.printStackTrace(); } try{ IEditorPart editor = HandlerUtil.getActiveEditor(event); if (editor.getTitle() != null) { pagetitle = editor.getTitleToolTip(); } else { pagetitle = null; }} catch (Exception e){ System.out.print("errore:" + e.getMessage()); e.printStackTrace();} NewFrame.main(null, pagetitle,worspacelocation); return null; } 它对我来说适用于matlab。

答案 3 :(得分:1)

对于 CentOS ,请确保已安装gcc-c ++软件包(包括libstdc ++ - devel依赖项):

sudo yum install gcc-c++