property c/c++ build settings buildsteps command cp ./xxxxx /xxxx 改可执行文件位置
property c/c++general codeanalysis pathandsymbols include和sourcelocation sourcelocation里要添加链接,否则不识别,不能直接加文件夹,必须这么添加文件夹,放mylib等函数文件
property c/c++ build settings toolsettings Intelc++linker libraries 上面放文件名,下面放路径,,库的包括中断库。这个放在程序工作路径下,否则收不到 debugas选择生成debug文件的路径
cat /proc/interrupts | grep Lpc 看中断
ifconfig ens4f2:0 192.168.66.122 netmask 255.255.255.0 在ens4f2板卡增加一个一个ip
file import general existingptojectsintoworkspace 把文件引入eclipse
gdb <可执行文件> <core文件>
bt看段错误
htop f5排序
etc rc.d rc.local 防火墙关闭
systemctl stop firewalld
systemctl disable firewalld
加入组播 route add -net 239.10.10.11 netmask 255.255.255.255 dev enp9s0f3
etc sysctl.conf
net.ipv4.conf.all.rp_filter=0 net.ipv4.conf.enp9s0f3.rp_filter=0
ps aux|grep 名字 看htop里面程序起没起 config_time.txt报错,位置不对,收不到中断,拷贝整个文件夹不是单独这个TXT文件
ifconfig enp9s0f2 inet 192.168.11.9 netmask 225.225.225.0 broadcast 192.168.11.255 改ip
chmod +777 可执行文件名字,增加权限 xshell中,输入ifconfig查看网卡 opt pet vpx_net.sh文件改网段号 右下角图标,右键选编辑连接,选择需要更改的网卡,ipv4设置,修改为需要更改的网段 EXE执行权限不够 右键命令行窗口输入 chmod 777 man(可执行程序名字)
取消板子写日志 在命令行里输入一下两条命令 systemctl disable rsyslog.service
systemctl disable kdump.service
root下vnc文件夹,有垃圾要删除 locate 文件名,看所有名字含文件名的文件位置 string不能用,加using namespace std .
vncserver -list看当前端口号
vncserver -kill :端口号
chmod 777 可执行文件名
while里scanf在自启动时,没有命令行不生效,会空跑while,需要有sleep
段错误为内存泄露原因 运用gdb,运行程序,r bt显示错误行 退出,q,y 可以显示程序卡死错误行数 在退出gdb后才能Killall线程 重启vnc服务
systemctl restart vncserver@:2.service
scp -r 文件名 root@192.168.6.60:/home /var/log/messages 删除日志文件
ps -ef| grep 名字
chkconfig --level 2345 sshd off ssh 用户名@ip 密码 远程访问 unsigned char buff 收 sudo ./可执行文件 matlab ctrl r t注释反注释 调试,调试窗口,内存 floor(x+0.5)四舍五入