我正在Matlab
帮助中关注kalman
编码器Matlab
教程。使用codegen
时,会出现以下错误:
/ usr / bin / ld:找不到-lstdc ++
collect2:ld返回1退出状态
但libstdc++.so.6
和/lib/
/usr/lib
答案 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++