Reputation: 35384
Let's take this simple C/C++ application Netbeans project folder.
In Netbeans IDE, we just hit build button on the toolbar to build the application.
I want to do that automatically via Windows command line, how can I do that?
I did google, and found some related posts though not very helpful for me except telling me to call ant dist
- though I don't have the build.xml
in my Netbeans 8 project.
p.s. I have hundreds of student submissions and need to verify which one is compilable. I also post on Netbeans forum here.
Upvotes: 0
Views: 639
Reputation: 25350
I want to do that automatically via Windows command line, how can I do that?
NetBeans uses Makefile-based projects as default for C/C++ projects, so you can use make
to build your project:
cd <Project dir>
make
It's also possible to build other make-targets (eg. make all
or make test
(builds / runs tests)).
Note: The Cygwin bin dir (CYGWIN_HOME\bin
) must be in system PATH
- same applies to other environments (MinGW, Gcc etc).
Upvotes: 1