Problem compiling c++ program in windows

Hello!

I am desperately trying to compile my c++ programs in windows. In Linux, all was easy but now, somehow mingw32-make does not create the executable. Whatever I do, it does not create it. Can someone please point out the problem?

This is what the shell outputs.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

x:\code\cProjects>mingw32-make test
mingw32-make test
g++     test.cpp   -o test

x:\code\cProjects>test
test
'test' is not recognized as an internal or external command,
operable program or batch file.

x:\code\cProjects>g++ test.cpp -o test
g++ test.cpp -o test

x:\code\cProjects>test
test
'test' is not recognized as an internal or external command,
operable program or batch file.

x:\code\cProjects>mingw32-make test
mingw32-make test
g++     test.cpp   -o test

x:\code\cProjects>test
test
'test' is not recognized as an internal or external command,
operable program or batch file.

x:\code\cProjects>


Thank you in advance!
Maybe you should try giving the target an extension?

g++ test.cpp -o test.exe
Last edited on
Still, the same thing happens. What I don't understand is why this hasn't happened when I was running another version of windows.


x:\code\cProjects>g++ test.cpp -o test.exe
g++ test.cpp -o test.exe

x:\code\cProjects>test
test
'test' is not recognized as an internal or external command,
operable program or batch file.

x:\code\cProjects>
There's more to it than what you are showing us, alas.

Can we see your makefile?

Try making something with a unique executable name, like 'adoxograph', then search your PC to find out if it exists, and where.
Topic archived. No new replies allowed.