M
M
mr-ZA2019-03-11 08:51:21
C++ / C#
mr-ZA, 2019-03-11 08:51:21

Hello, how can I manually compile a program for x86 architecture using windows command line and g++ compiler from mingw?

Hello, how to manually compile a program for x86 architecture using windows command line and g++ compiler from mingw. The PATH variable is set, I do this:
g++ -E hello.cpp > ​​hellow.cpp -m32 -- preprocessing
g++ -c hellow.cpp -o hellow.o -m32 -- compilation
g++ hellow.o -o hello.exe -m32 - - linking
CHYADNT?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mr-ZA, 2019-03-11
@mr-ZA

The problem was solved by changing the PATH path, the QT/g++ compiler was specified. I changed it to MinGW -> C:\MinGW\bin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question