• 4671阅读
  • 3回复

qwt段错误,紧急求助!!! [复制链接]

上一主题 下一主题
离线zhanghuan
 
只看楼主 倒序阅读 楼主  发表于: 2009-11-16
各位大侠:
    现在遇到一个十分棘手的问题,我写了个qt程序,在其中的绘图部分用到了Qwt库,在编译环境下运行没有问题,但是部署到其他计算机上时,提示段错误(如果去掉其中的qwt绘图部分,部署没有问题;将qwt中的例子部署到目标机上运行也没有问题),求教是怎么回事啊。
离线steinlee

只看该作者 1楼 发表于: 2009-11-16
use valgrind on Linux to run your code and you can find the problem easily
Looking for remote C/C++ and Qt 兼职
离线zhanghuan
只看该作者 2楼 发表于: 2009-11-16
谢谢,但是为什么在编译环境下没问题而在部署的时候才出现问题呢?
离线steinlee

只看该作者 3楼 发表于: 2009-11-17
This is a running time error. Compiler is not smart enough to find your logical error.
You are lucky because it is easier to find and fix this type of errors. Run valgrind and
you may be able to find the bug right away.
Looking for remote C/C++ and Qt 兼职
快速回复
限100 字节
 
上一个 下一个