no exe file after compile

Well hi,

I have a problem here. I have an assigment to write a program and use stdio.h, but when I compiled it using g++ I can't find the exe file. I tried to use iostream it work without any error and there is an exe file in the same directory. So... Anyone know how to solve this ?
Are you saying that you are getting an error when trying to compile with <stdio.h>? It should be backwards compatible, but try using <cstdio> instead. If you're not getting an error, I assume you searched all your directories for the executable?

If you're using functions like std::cout, you'll need <iostream>, <cstdio> doesn't supply those.

Are you working with C or C++? If the former, you can't use C++ things like std::cout.
Last edited on
closed account (j3Rz8vqX)
I have an assignment to write a program and use stdio.h, but when I compiled it using g++ I can't find the exe file.

Was there a compiler error?
If the code is not valid, it will not produce an executable.
Thanks for the answer, I think they'll allow me to use cstdio


@Dput: there are no error while compiling
Last edited on
closed account (j3Rz8vqX)
What command did you input to the console?

An example:
g++ main.cpp -o main.exe
Non windows would not need to include the extension ".exe".
Topic archived. No new replies allowed.