Whenever I edit to remove -koption from build command line of my C++ project (Project->Properties->C/C++ Build -> Build command), Eclipse adds it back upon saving properties. How to defeat this?
Whenever I edit to remove -k option from build command line of my C++
Share
For generic C++ projects, you may check or uncheck “Stop on first build error” on the second tab (Behavior) of the Properties/C++ Build/Builder settings dialog. When the checkbox is off,
-kis automatically added to whatever command you have in the first tab.Note that for Android NDK projects, there is now a new ADT plugin which you can get as an ADT bundle or plugin from http://developer.android.com. For such project, if you look at Properties/C++ Build/Builder settings, you see
ndk-buildas default build command, and the checkbox on the second tab is disabled, therefore-kwill never be appended to the command.You can still create a makefile project using the Android toolchain, and set “ndk-build” as an override for the default build command make. With this, you can get
-kon or off.