我正在为 Windows 制作一个 wxWidget 应用程序。我在 Windows 7 中使用 code:blocks 13.12 和 MinGW 4.8。
我在 settings->compiler
中启用了 -pg 选项,编译后尝试打开 plugins->code profiler
结果是这样的:
gprof: file`C:\Users\josele\Documents\C_C++\DLL\SQLManager\bin\Release\SQLManager.exe' has no symbols
基本上我不知道分析在 code:block 中是如何工作的,而且我对分析的一般知识也大大减少了。
我正在寻找解决这个问题或教程:分析如何在代码块中工作?。
如果您需要更多信息,请只告诉我。提前谢谢你。
PD。在调用 plugins->code profiler
之前,我还运行了 .exe
并退出了程序
最佳答案
我只是用这篇文章解决了这个问题:
http://forums.codeblocks.org/index.php?topic=12237.0 http://forums.codeblocks.org/index.php?topic=14798.0
我转到 Project->build options
并在那里关闭优化并启用 pofiler。
关于c++ - 如何使用代码 :Blocks 进行分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31396904/