Console output... [message #721818] |
Fri, 02 September 2011 21:07 |
Eclipse User |
|
|
|
Hi,
I have posted on this topic before but would like to start a new thread.
I have managed to install MinGW and cygwin and setup the enviro variable path to the bin directory of both of these files, also the mingw msys bin directory.
I am running INDIGO on a Win 7 64bit.
When i create a new C++ "!!!Hello world!!!" project selecting MinGW GCC.
I then go to the Advanced setting and turn on -pedantic and -wall. Can't seem to find -ANSI.
Which is required as part of my course.
I turn on Elf parser as i have read it is necessary for binaries. Think this was before i installed the path's to the bin directories. So probably don't need to.
Once proceed i have my hello world program and the binaries.
But if i run the program i see the build process. The program terminates with no console output.
If i run it in the debugger i do get console output. But if in use "cin" i can not input while in the debugger.
At the end of running the debugger i get an error message "No source available _mingw_CRTStartup() at 0x[addr]"
followed by a button to view the Disassembly...
I was informed to put this at the start of my main..
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
but don't know what #includes to use with these.
So to sum it up.
I get build output but no run time Console output for the Release.
I get both build output and Console output for the debugger but no input functionality. Also an error message at the end of the debug cycle.
|
|
|
Powered by
FUDForum. Page generated in 0.07347 seconds