当前位置:网站首页>rtklib2.4.3 b34的一个与编译器有关的bug
rtklib2.4.3 b34的一个与编译器有关的bug
2022-06-23 03:53:00 【奔跑的橘子】
最近在使用rtklib时遇到一个问题,困扰了许久,最后总算用歪门邪道的方式解决了。
issue如下
- 重新基于rtklib的代码编译一个application,解算数据,一切正常。
- 下一步,将rtklib中的trace去掉,再编译,解算。好的,问题出现,不能解算了。
是真的将所有trace去掉,不是将level设置为0,或者将trace name设置为空,或者将函数体注释掉。这些方式并不能真正去掉trace,并且这些情况重新编译的话,是可以正常解算的。为什么这些方式不能真正去掉trace?因为,这些方法并不能去掉函数的调用,函数调用时,会计算函数参数,这些非常耗时!而这些操作没有意义。
如何解决呢
- 首先,是不能通过打trace解决的,因为如果打开trace,即便把函数体注释掉,什么也不做,程序依然是正常运行的
- 能不能通过debug呢?不能。经过尝试,debug版本是正常运行的。
- debug版本在很多情况下与release结果不一致,这也正常。没什么好奇怪的。不展开讲了。
- 换个编译器是否可以呢?还真可以了。。。
通过将编译器从vc++14.0 (对应Visual Studio 2015)换为MinGW。真的可以了。
还没有细看原因,有查过的欢迎共享。
边栏推荐
- Dolphin scheduler 2.0.5 task test (spark task) reported an error: container exited with a non zero exit code 1
- Receive incoming files and download (simple usage) a tag
- Pads and flash symbols in cadence
- Parameter passing of 18 generator function
- AD9使用技巧拾遗
- Metadata management Apache Atlas Compilation (embedded) deployment and various error records encountered
- dolphinscheduler 1.2.1 数据迁移到 dolphinscheduler 2.0.5方法及迁移后数据测试记录
- Flask Foundation: environment setup + configuration + mapping between URL and attempt + redirection + database connection
- Welcome to the CSDN markdown editor
- ApiPost接口测试的用法之------Post
猜你喜欢

Current relay hdl-a/1-110vdc-1

Usage of apipost interface test ------ get

ICER skill 02makefile script self running VCs simulation
![[paper reading] semi supervised learning with ladder networks](/img/c9/e2f4b221d762f41ba6b75926293673.png)
[paper reading] semi supervised learning with ladder networks

Do280openshift command and troubleshooting -- common troubleshooting and chapter experiments

What are the types of independent station chat robots? How to quickly create your own free chat robot? It only takes 3 seconds!

Precautions for running high-frequency and high-speed signal lines near PCB board - basic principles for high-frequency and high-speed signal design

2020:VL-BERT: Pre-training of generic visual-linguistic representation

DO280OpenShift命令及故障排查--常见故障排除和章节实验

go学习记录二(Window)
随机推荐
Current relay hdl-a/1-110vdc-1
How to solve multi-channel customer communication problems in independent stations? This cross-border e-commerce plug-in must be known!
ICER skills 03design compile
MySQL import large files (can be millions or hundreds)
Apache atlas quick start
Dolphin scheduler 2.0.5 task test (spark task) reported an error: container exited with a non zero exit code 1
20000 words + 20 pictures | details of nine data types and application scenarios of redis
传统意义上的互联网式的平台或将不复存在,一个融合的产业特质和互联网特质的全新产业
go学习记录二(Window)
Li Kou today's question 513 Find the value in the lower left corner of the tree
Cloud function realizes fuzzy search function
QT elidedtext only works for Chinese conformity, but not for English
微信小程序实例开发:跑起来
How to better organize the minimum web api code structure
Openwrt directory structure
With the arrival of intelligent voice era, who is defining AI in the new era?
Question bank and answers of 2022 hoisting machinery safety management examination
微信小程序:老年祝福短视频
Altium designer 09 screen printing displays a green warning near the pad. How to prevent it from alarming?
Seven year manong Road