GNU Compiler Collection (GCC) is an optimizing compiler produced by the GNU Project supporting various programming languages, hardware architectures and operating systems. It includes front ends for C, C++, Objective-C, Fortran, Ada and Go. This article discuss about commonly encountered GCC compiler flags. Disable the unused variable warningsUse flag -Wno-unused-variable [...]
Stepping over the debugger to cursor locationRight-click on the line and select "Continue to Here".Set and unset the breakpoint to the line where your cursor is flashingCommand -\Right click for those with a one button mouseControl + clickFind matching brace, bracket or parenthesisDouble tap on one of the nested parenthesis, [...]
Using Eclipse with CDT for C++ development on Windows. Sometime Eclipse couldn't find the Source during debugging because of the missing mapping to the (cygwin-) drive if the workspaces is residing in root other than CYGWIN. To resolve the mapping, If Projects are under C:\Projects, so add mapping in Eclipse [...]
Introduction Optimization level defines how code are compiled and linked. For code debugging this should be disabled other wise breakpoint will not behave properly. Xcode will complain about the same by printing message "App Name was compiled with optimization - stepping may behave oddly; variables may not be available." on [...]
Download Eclipse CDT Install MinGW-w64 Double click on seup and select as shown in the image Open any C++ project in eclipse, under Windiow -> Preference add MinGW environrment as variable as follows.