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.
Codelite with gcc-4.8.1
-
- CodeLite Veteran
- Posts: 98
- Joined: Thu Feb 18, 2010 10:54 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Codelite with gcc-4.8.1
Try running it from the command line and see if it works from thereHJarausch 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.
Also, pasting the build log will help
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 98
- Joined: Thu Feb 18, 2010 10:54 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Codelite with gcc-4.8.1
Running it from the command line doesn't show anything, no error message and no output at all.eranif wrote:Try running it from the command line and see if it works from thereHJarausch 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.
Also, pasting the build log will help
Eran
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.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Codelite with gcc-4.8.1
It seems like you have disable the console.
Try removing this flag from the linker and it should work:
Eran
Try removing this flag from the linker and it should work:
Code: Select all
-Wl,--subsystem,windows
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 98
- Joined: Thu Feb 18, 2010 10:54 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Codelite with gcc-4.8.1
Many, many thanks.
I wouldn't ever thought of that,
Helmut
I wouldn't ever thought of that,
Helmut