N
N
NikitaZA2017-06-14 23:23:01
C++ / C#
NikitaZA, 2017-06-14 23:23:01

MinGw Windows how to work via console?

g++ command for compiling
-L included libraries .lib
-I included files include
-o where to compile
What else is used to compile the project via the console, what other commands are there. I am using minGw for windows.
On the site I read the documentation but did not understand everything. In fact, they are interested in what needs to be written to get it like in code blocks when pressing F9. Provided that I work with openGl and include glut in code blocks, etc. There is also an included class.h class.cpp . Please provide an example of the command syntax.
Ps Code blocks is tired of its glitches just like VS. I'll install Sublime Text 3 (I know there are plugins for c++ and you can connect a compiler, but first I want a console, I want to understand how the IDE builds the project), I'll write a batch file and compile through the console with "color 2" =))).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2017-06-15
@NikitaZA

Write a makefile - this is a common practice for compiling programs.
Usually, the compilation process is also divided into compiling object files and linking them into an executable file. To do this, add the -c option to the compilation. But this is optional.
Then you can add debugging options or vice versa optimization, -pedantic -Wall and -std=XXX
In general, gcc --help will help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question