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++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in NETBEANS
- entity classes are not showing when trying to create new session beans for entity classes in netbeans 9.0
- Cant connect to any github repository from my netbeans 20
- Set Netbeans Console to English
- How can I retrieves divs into a dynamic page in Java?
- how to create an sqldump file for backup in netbeans(java)
- Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0
- ERROR "java.net.URL.toExternalForm()" because "location" is null"
- NetBeans snap - Java configuration
- How can one set java.base/java.util=all-unnamed in Netbeans IDE
- Why my form glitch when I type someting to textfiled in java
- How do I fix Netbeans' invalid source release?
- Apache NetBeans 20: Apache Tomcat service doesn't stop when I try to stop it from the IDE
- I can't send attachment outside of NetBeans
- Does anyone know how to fix this error in Netbeans 19 to install JavaFX
- NetBeans: Unable to Create CUnit Tests - Grayed Out Menu Options
Related Questions in MAKEFILE
- How to refer to the filepath of test data in test sourcecode?
- Can't connect to postgres with Adminer using Docker on MacOS
- Flint installation error: make: *** [build/generic_files/memory_manager.lo] Error 1
- How to compile the Linux kernel with -O0 for more detailed debug?
- Makefile:7: *** missing separator. Stop (HELP NEEDED)
- Trying to compile GCC returns a bunch of errors
- cmake and g++ cross compilation looking for library in host sysroot path instead of target sysroot
- Turn a makefile into a list of build commands
- make test error with Golang: make: *** [Makefile:47: manifests] Error 126
- Passing optional arguments from makefile to shell script
- GNU make file pairwise combinations of files in folder
- make Error 2, The system cannot find the file specified
- Why do I get a make: *** No target specified and no makefile error?
- why does Make give error while compiling?
- CMake always rebuilding included file even if it didn't change
Related Questions in NETBEANS6.7
- Installing NetBeans 6.7.1 with JDK 1.6
- Using OpenOffice.org SDK in Netbeans 6.7
- Illegal access: this web application instance has been stopped already. Could not load org.apache.log4j.spi.NOPLoggerRepository
- Java netbeans project does not take effect of changes
- Calling a web service
- Where to add txt file as resource in Java web app, when using Netbeans?
- How to install Jira Plugin on Netbeans without access to the internet
- How to add code in mobile application build in netbeans
- Netbeans Container deletion operation fails to perform properly?
- Access two services methods from one controller in hibernate and Spring MVC
- Why can't I install plugin for android development in netbeans?
- how to fix Javax. Naming.exception: nameNotFoundException <my_JNDI_name> not found
- Netbeans VisualJSF (Woodstock) Design view not available in 6.7.1
- When we update the jdk, what action is needed for previously installed Netbeans?
- using old port after chaging domain.xml
Related Questions in NETBEANS-PLUGINS
- How to install JMX plugin and Jconsole plugin in netbeans 20
- How to modify the main Method of a 'NetBeans Platform'-based application?
- NetBeans Modules and the "Force Install Into Shared Directories" option for plugins
- Cannot activate Java SE features in Netbeans 18
- How to run an ear project on WildFly 29 with NetBeans 19?
- Tomee Maven plugin deploys correctly in run mode but fails to connect to port 8080 in debug mode
- cannot download and install plugins in netbeans ide 8.0.1
- Add Java Card Platform to NetBeans 18
- I can't download the Codename One plugin in NetBeans because of NBM
- Symbol not found on netbeans visual database explorer module
- Problems creating a project with CodenameOne in Netbeans
- Netbeans pluging installation offline
- Unable to map database to POJO using hibernate in netbeans 13 (Ubuntu 22.04)
- Nbeans cant find or load main class
- NetBeans IDE 8.2 failed to download plugin
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 # Hahtags
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.