用到的一些linux命令汇总

编译cpp文件:

gcc -c a.c // 源文件 -> 汇编文件.o

gcc -o a a.o //汇编文件.o -> 可执行文件a

出现的错误: 对“std::out”未定义的引用

解决:gcc改成g++

出现的错误: ../lib/libgsl.so : 对cblas_ 未定义的引用

解决:对链接不到的库 显示链接:

g++ -o clusterMI clusterMI.o -lgsl -lm -lgslcblas

修改了$HOME/.bashrc之后 linux默认命令都不能用了

解决:原文:bashrc文件更改导致linux系统指令不能用的解决方案_7900X的博客-CSDN博客

export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin

matlab程序linux下不启动图形界面直接执行命令:

matlab -nodesktop -nosplash -r matlabfile

参数含义:

 -nodesktop                    - Do not start the MATLAB desktop. Use the current
                                           terminal for commands. The Java virtual machine
                                           will be started.
 -nosplash                      - Do not display the splash screen during startup

[-r MATLAB_command]

只用文件名matlabfile,不能添加.m

原文:Linux下使用matlab运行.m文件_mjiansun的博客-CSDN博客_linux 运行matlab

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值