A
A
Asya2017-05-08 21:29:42
Qt
Asya, 2017-05-08 21:29:42

How to use g++ flags in development environment?

Let's say I have myfile1.cpp and myfile2.cpp, and I enter something like this into the console:

@echo off
g++ -Wall src/myfile1.cpp -o myfile1.exe
g++ -Wall src/myfile2.cpp -o myfile2.exe
myfile1.exe data/file.one data/file.two model_file
myfile2.exe data/file.test model_file file.out

How to do the same only in visual studio/qt for example?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2017-05-08
@asyaevloeva

QtCreator allows you to specify the necessary flags in the project settings, but many things are solved through qmake.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question