kdevelop

Enable compiler warnings in Kdevelop

折月煮酒 提交于 2020-01-05 07:36:50
问题 I'm using Kdevelop for a simple C++ project. I know that Kdevelop uses CMake to build the project, but the only thing that I known about CMake is that if I add a new .cpp source file in my project, I have to add it also in CMakeLists.txt . Now I'm trying to enable tha gcc compiler warnings (i.e. compiling with g++ -Wall ... ). Does Kdevelop have a compiler settings section, or I have to edit directly the Makefile or another CMake settings file? 回答1: You can add compiler flags in CMake by

kdevelop 4.0 : No project Templates

烈酒焚心 提交于 2019-12-23 05:14:17
问题 I have just installed kdevelop 4.0 on my Ubuntu machine and found that there are very few project templates (all are Qt related). I am not a qt developer and the previous versions of kdevelop had a lot of project templates. I am not sure how to get general C and C++ GTK templates. A Screenshot from a older version of kdevelop: http://www.euclideanspace.com/software/language/cpp/kdevelop/kd2.gif 回答1: If you are using ubuntu, try installing the kapptemplate package. It doesn't contain as many

How to develop a cross-platform C++ project?

╄→гoц情女王★ 提交于 2019-12-21 04:59:18
问题 I'm a C++ beginner and I'm starting to develop my first cross-platform C++ project. I need to use platform-specific calls (Win32 and POSIX) so I need to compile frequently both in Windows and Linux. Whit single-platform projects I'm using, until now, KDevelop in Linux and Visual Studio 2012 in Windows. How can I use two different IDEs in two different Operating Systems with the same project? Should I use a single, cross-platform, IDE? Should I learn CMake (or similar) and configure it to work

Best crossplatform C++/QT4 development environment

試著忘記壹切 提交于 2019-12-18 16:45:50
问题 I would like to develop cross-platform applications using C++ and QT4. I code on both Linux and Windows (MinGW). Currently I'm using KDevelop and it's QMake integration. On Windows I'm trying out Eclipse with QT integration plugin. However moving sources and updating profiles/IDE project files on both systems is tedious. I'm looking into using CMake as it can generate Makefiles, KDevelop project files and Eclipse project files. What's your opinion? What are you using for such kind of

Show Array's Content in a Range in Qt Debugger

旧城冷巷雨未停 提交于 2019-12-13 16:02:43
问题 I'm using QT Creator debugger. When I try to debug a large array (i.e. 1000,000 elements), it hangs for trying to retrieve the whole array's values, though I'm trying to see the first few elements only. In KDevelop the debugger shows the first 5 elements only, then I press click to show another 5 elements and so on. Is it possible to do the same in QT Creator? 回答1: The answer depends on the debugging backend you use, and the version of Qt Creator. With GDB as debugging backend you can use

Kdevelop execute project with parameters

流过昼夜 提交于 2019-12-12 18:41:59
问题 I am new to Kdevelop and I am trying for 2 hours to run a project based on input parameters in C++ style. The code is here: int main(int argc, char** argv) { std::string s = args[1] std::cout<<s<<std::endl; } I am trying to add the parameter, but it is crashing and saying Process Error - Kdevelop A shell meta character was included in the atguments for file launch ... Can anyone tell me what is it about? Andhow can I fix it, or where shall I add the execution parameters? I have placed them in

Segfault in c++ program; Incomprehensible valgrind output

折月煮酒 提交于 2019-12-12 03:29:42
问题 I'm currently writing my first big c++-project but encountered a segmentation fault when running the program. I already tried to debug it using valgrind, but so far without success. Since the program is quite big, I'll show only the relevant function in which the error occured: void RigidBody::RotateAroundAxis( dReal Angle, dRealVector3 Axis, dRealVector3 Anchor) { std::cout<<"RotateAroundAxis BodyID: " << this->GetBodyId()<<std::endl; dRealMatrix3 RotationMatrix=HelperFunctions:

常用的linux C/C++ IDE

馋奶兔 提交于 2019-12-05 22:48:15
一、Anjuta Anjuta是一个多语言的IDE,它最大的特色是灵活,同时打开多个文件,内嵌代码级的调试器(调用gdb),应用程序向导(Application wizards)可以方便的帮助你创建GNOME程序而不需要你自己写一些与你兴趣无关的代码。 配置C/C++环境请看 这里 项目主页: http://anjuta.sourceforge.net/ #安装: sudo apt-get install anjuta 二、netbeans NetBeans IDE 是一个为软件开发者提供的自由、开源的集成开发环境。您可以从中获得您所需要的所有工具,用 Java、C/C++ 甚至是 Ruby 来创建专业的桌面应用程序、企业应用程序、web 和移动应用程序。此 IDE 可以在多种平台上运行,包括 Windows、Linux、Mac OS X 以及 Solaris;它易于安装且非常方便使用。 项目主页: http://www.netbeans.org/ #安装: sudo apt-get install netbeans 三、Code::Blocks Code::Blocks是一个开源、免费、跨平台的c++ IDE。官方网站上称其能满足最苛刻的用户的需求。虽有点夸张,但既然敢这样说,也说明它的功能肯定不差。可扩展插件,有插件向导功能,让你很方便的创建自己的插件。Code: