I create new c/c++ project in Netbeans and change Makefile and add -lpthread for work with pthread and run my project .also I need to add some runtime argument from project properties/Run/Arguments . when I change runtime Arguments Makefiles that place at /'project folder'/nbproject/private/Makefile-Debug.mk & Makefile-Release.mk are re produced and my edit and -lpthread clear .
now it's a bug ? or feature ? and how to avoid it ?
Netbeans re produce Makefile when change options in c/c++ developing
6.2k Views Asked by Sajad Bahmani At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in NETBEANS
- export function with netbeans from mysql to excel
- issue in my if statement to make comparison in my java program
- How do I change code template triggering behavior in Netbeans 8.0?
- How to get the last integer ID you query in MySQL
- Opening jar file with external library
- How to access a private method
- CoffeeScript For NetBeans 8.0 Plugin: Set Target Folder For Compiles JS
- error with google app engine deploy
- Why won't my JSF app deploy to GlassFish?
- NetBeans commenting
- Store Strings longer than 255 in a database in Netbeans
- How to set jcombo box to what i want
- Wildfly 9.0.0 and Netbeans 8.0.2
- Netbeans unexpected return value error
- Relationship between gcc, g++, cygwin, and wingw?
Related Questions in MAKEFILE
- Error trying to generate Makefile for glBinding
- Eclipse Makefile: Make Variables are skipped
- Errors in makefile for qemu 0.14.1 in ubuntu 15.04 64 bit
- C++ Struct prototyping in separate header file
- Reuse jquery plugin without conflict
- How do I a conditional build through a make file?
- basic makefile ifeq how to
- (automake, libtool) build fails in automake when using same source file name in different directory
- Makefile pattern rules differences
- Errors while trying to run make on source code
- Git tag name as version in Go via Travis-CI
- gcc make -properly sort out the sequence of making object files
- AOSP ROM for Samsung Grand duos GT-i9082 Error loading kernel
- How to address multiple definition compiler error
- How does MAKE remember the file timestamps
Related Questions in NETBEANS6.7
- Using OpenOffice.org SDK in Netbeans 6.7
- Calling a web service
- Java netbeans project does not take effect of changes
- Access two services methods from one controller in hibernate and Spring MVC
- How to add code in mobile application build in netbeans
- Netbeans Container deletion operation fails to perform properly?
- How to install Jira Plugin on Netbeans without access to the internet
- Anyone have a simple template for creating a new syntax highlighter for a Netbeans Editor?
- Weird System.out.print Behavior in Netbeans
- How to install J2ME compatible platform/emulator in NetBeans IDE 6.7.1
- "Missing Body Element" with the Visual Web Pack on Netbeans
- Problem selecting the value from a JComboBox binded to a list
- How to make Netbeans use single quotes in HTML tag attribute autocomplete?
- How to initialize google-code project in Mercurial
- Adding test files to a Junit test in Netbeans 6.7.1 - getResource issues, missing file in build directory
Related Questions in NETBEANS-PLUGINS
- jsHint for NetBeans 8.0
- NBMongo not working in NetBeans 8.2?
- C program compiles but does not execute
- NetBeans Platform: Updating editor window content
- How to calculate depth of conditional nesting using netbeans
- GWT 2.7 with Netbeans not compiling
- Error in Netbeans 8.0 startup
- Netbeans Chrome Extensions Source Code
- How Do I Disable "missing java doc" warning in netbeans code inspection?
- When I try to run my app back in Android Studio an “Edit Configuration”
- remove a component from netbeans swing ui
- How do I change the default value of the Port field on the Attach dialog programmatically?
- Netbeans and Redmine integration
- Error with NetBeans Android plugin
- Is batik included in Netbeans 7.3.1 or higher
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It is not feature, :( Makefiles are generated automatically so any your changes will be lost every time Makefile change (eg when you add new files to project)
Solution is to use Netbean's Makefile Wizard!
And Netbean will take care about Makefiles itself.
EDIT (in response to first comment below): Alternative to Netbeans makefile wizards (and project properties) is to not use it! There are some good tools that have the same functionality as Netbeans Makefiles and all of them are based on Make.
Look for Ant or qmake. But in that approach you will have to write configs for your app yourself (but written once require changes only if new files are added to project) and second disadvantage is that every time you wont to compile and run your app you will have to type a command in console.