Page 1 of 1
Codelite with gcc-4.8.1
Posted: Tue Oct 08, 2013 8:13 pm
by HJarausch
Hi,
I've installed codelite-5.2-mingw4.7.1 (including gcc-4.7.1) on my Window 7 Professional.
It works, many thanks!
But now, I'd like to replace gcc-4.7.1 with gcc-4.8.1 downloaded from
http://www.equation.com
I've installed it into C:\MinGW which has overwritten files from codelite-5.2-mingw4.7.1.
Now, compiling and linking a project does work just fine.
But, for console project, I don't see any output written to the console (by cout or cerr).
I just see "Press any key to continue" in that "terminal".
What am I missing, which error did I make?
Many thanks for a hint,
Helmut.
Re: Codelite with gcc-4.8.1
Posted: Tue Oct 08, 2013 8:44 pm
by eranif
HJarausch wrote:Hi,
I've installed codelite-5.2-mingw4.7.1 (including gcc-4.7.1) on my Window 7 Professional.
It works, many thanks!
But now, I'd like to replace gcc-4.7.1 with gcc-4.8.1 downloaded from
http://www.equation.com
I've installed it into C:\MinGW which has overwritten files from codelite-5.2-mingw4.7.1.
Now, compiling and linking a project does work just fine.
But, for console project, I don't see any output written to the console (by cout or cerr).
I just see "Press any key to continue" in that "terminal".
What am I missing, which error did I make?
Many thanks for a hint,
Helmut.
Try running it from the command line and see if it works from there
Also, pasting the build log will help
Eran
Re: Codelite with gcc-4.8.1
Posted: Tue Oct 08, 2013 10:23 pm
by HJarausch
eranif wrote:HJarausch wrote:Hi,
I've installed codelite-5.2-mingw4.7.1 (including gcc-4.7.1) on my Window 7 Professional.
It works, many thanks!
But now, I'd like to replace gcc-4.7.1 with gcc-4.8.1 downloaded from
http://www.equation.com
I've installed it into C:\MinGW which has overwritten files from codelite-5.2-mingw4.7.1.
Now, compiling and linking a project does work just fine.
But, for console project, I don't see any output written to the console (by cout or cerr).
I just see "Press any key to continue" in that "terminal".
What am I missing, which error did I make?
Many thanks for a hint,
Helmut.
Try running it from the command line and see if it works from there
Also, pasting the build log will help
Eran
Running it from the command line doesn't show anything, no error message and no output at all.
The build log doesn't show anything special, as well :
C:\Windows\system32\cmd.exe /c "make.exe -j 2 -e -f Makefile"
"----------Building project:[ HelloWorld - Debug ]----------"
make.exe[1]: Entering directory `C:/Users/Jarausch/Test/HelloWorld'
g++ -std=c++11 -Wall -Wno-unused-local-typedefs -c "C:/Users/jarausch/Test/HelloWorld/main.cpp" -g -O0 -Wall -o ./Debug/main.o -I"C:\MinGW"/include/c++ -I"C:\MinGW"/include/c++/Eigen -I. -I.
g++ -std=c++11 -Wl,--subsystem,windows -o ./Debug/HelloWorld @"HelloWorld.txt" -L.
make.exe[1]: Leaving directory `C:/Users/Jarausch/Test/HelloWorld'
0 errors, 0 warnings
What part of Codelite starts the "terminal emulator" and how does the output get there.
Here is the source
#include <iostream>
using std::cout; using std::endl;
int main()
{ char ans;
cout << "Hello World\n";
std::cerr << "input any char: ";
std::cin >> ans;
return 0;
}
Many thanks,
Helmut.
Re: Codelite with gcc-4.8.1
Posted: Tue Oct 08, 2013 10:47 pm
by eranif
It seems like you have disable the console.
Try removing this flag from the linker and it should work:
Eran
Re: Codelite with gcc-4.8.1
Posted: Tue Oct 08, 2013 11:47 pm
by HJarausch
Many, many thanks.
I wouldn't ever thought of that,
Helmut