User forums > Help

New program returns value immediately

<< < (3/3)

Miguel Gimenez:
Works here:

--- Code: ----------------- Clean: Debug in soc (compiler: GNU GCC Compiler)---------------

Cleaned "soc - Debug"

-------------- Build: Debug in soc (compiler: GNU GCC Compiler)---------------

g++.exe -Wall -fexceptions -g  -c C:\Users\Miguel\Desktop\soc\main.cpp -o obj\Debug\main.o
g++.exe  -o bin\Debug\soc.exe obj\Debug\main.o   
Output file is bin\Debug\soc.exe with size 63.75 KB
Process terminated with status 0 (0 minute(s), 1 second(s))
0 error(s), 0 warning(s) (0 minute(s), 1 second(s))

--- End code ---

The only thing I can think of is a bad compiler configuration, go to Settings -> Compiler -> Toolchain executables -> C++ compiler and check it is g++.exe

MichKat:
Thanks for help but it is g++.exe for C++, will try to play with antivirus and other software a little more. Thanks for help!

Navigation

[0] Message Index

[*] Previous page

Go to full version