Page 1 of 1

Console window and vc

Posted: Sun Mar 23, 2014 9:51 am
by asrat
Hello,

This is my first post.

I just start using CodeLite.

I wrote simple "Hello World "Project.
When I run this console window just pop up, Not stay on.
What should I do.

Another question:

When I create another project using VC++ compiler,(I have installed VC 2010 Express Edition.),following msg pop up.

debugger exited with the following error string:
"No executable specified,use 'targetexec'"

I searched this forum but cant resollve my problem

Regards

Re: Console window and vc

Posted: Sun Mar 23, 2014 10:26 am
by eranif
Can you please provide the full build log? (In the output pane, copy the content of the 'Build' tab)
Please make sure you paste here its entire content (don't truncate it)

The build log will be able to tell us more on how you have compiled your console app etc.
In addition, make sure that you have checked the option:
(Right click on the project item) -> Settings -> Common Settings -> General -> Pause when execution ends
asrat wrote:When I create another project using VC++ compiler,(I have installed VC 2010 Express Edition.),following msg pop up.
CodeLite support for VC is weak. You will need to update the VC compiler paths manually (from Settings -> Build Settings -> Compilers -> VC++ -> Advanced -> Include paths, and Libraries Paths). IIRC, the paths there are still pointing to VC8

In addition, you won't be able to debug your code with gdb (i.e. code generated with VC compiler can not be debugged with gdb)
I highly recommend you to use gcc/g++ for Windows as well.

Eran

Re: Console window and vc

Posted: Sun Mar 23, 2014 10:55 am
by asrat
Thanks for your reply.

My initial code is as simple.

#include <iostream>
using namespace std;
int main()
{

cout<<"Hello World"<<endl;
//cin.get(); //when I uncomment these two lines, console does not stay on.
//cin.get();

return 0;
}

Please aslo note I verify this.

(Right click on the project item) -> Settings -> Common Settings -> General -> Pause when execution ends

And Build Output is as :

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f Makefile"
----------Building project:[ 01 - Debug ]----------
mingw32-make[1]: Entering directory 'c:/Program Files/CodeLite/Jignesh/01'
mingw32-make[1]: Leaving directory 'c:/Program Files/CodeLite/Jignesh/01'
mingw32-make[1]: Entering directory 'c:/Program Files/CodeLite/Jignesh/01'
g++ -c "C:/Program Files/CodeLite/Jignesh/01/main.cpp" -g -O0 -Wall -o ./Debug/main.o -I. -I.
g++ -o ./Debug/01 @"01.txt" -L.
mingw32-make[1]: Leaving directory 'c:/Program Files/CodeLite/Jignesh/01'
0 errors, 0 warnings


Regards

Re: Console window and vc

Posted: Sun Mar 23, 2014 11:09 am
by eranif
What happens if you move your workspace to a folder with no spaces in its path (e.g. C:\src\projects)

Eran

Re: Console window and vc

Posted: Sun Mar 23, 2014 11:19 am
by asrat
Nothing happened

See my new Build Log

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f Makefile"
----------Building project:[ abc1 - Debug ]----------
mingw32-make[1]: Entering directory 'c:/New/abc1'
g++ -c "C:/New/abc1/main.cpp" -g -O0 -Wall -o ./Debug/main.o -I. -I.
g++ -o ./Debug/abc1 @"abc1.txt" -L.
mingw32-make[1]: Leaving directory 'c:/New/abc1'
0 errors, 0 warnings

Re: Console window and vc

Posted: Sun Mar 23, 2014 10:20 pm
by eranif
Do you have anything in the Output Pane -> Output tab?

Eran