Compile doesn't show print out of hello world?

CodeLite installation/troubleshooting forum
eiger3970
CodeLite Curious
Posts: 7
Joined: Thu Mar 01, 2012 12:41 pm
Genuine User: Yes
IDE Question: C++
Contact:

Compile doesn't show print out of hello world?

Post by eiger3970 »

I have just struggled in what should be a simple installation and making a new workspace, then a project like hello world.
For some reason the print out only shows: Press any key to continue. It should show hello world.

Any help please.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compile doesn't show print out of hello world?

Post by eranif »

Probably your project did not compile OK, but I wouldn't know since you did not provide any information

Please follow the forum posting guidelines:
viewtopic.php?f=3&t=138

Eran
Make sure you have read the HOW TO POST thread
eiger3970
CodeLite Curious
Posts: 7
Joined: Thu Mar 01, 2012 12:41 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compile doesn't show print out of hello world?

Post by eiger3970 »

Thank you for the reply.
Yes, I have followed the guidelines at viewtopic.php?f=3&t=138, in particular steps 1 to 5.

That's why I have now posted as the simple install and user friendliness is not what I have found when using CodeBlock.

If anyone can help, I'm happy for a quick fix.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compile doesn't show print out of hello world?

Post by eranif »

eranif wrote:Please follow the forum posting guidelines:
viewtopic.php?f=3&t=138
Sorry, I provided you the wrong link...

What I wanted you to read is this:
viewtopic.php?f=3&t=804

It will list all the information that you should include so I / others can provide a solution for your problem

In particular, I need the *complete* build log
Eran
Make sure you have read the HOW TO POST thread
eiger3970
CodeLite Curious
Posts: 7
Joined: Thu Mar 01, 2012 12:41 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compile doesn't show print out of hello world?

Post by eiger3970 »

Thank you for your reply.
I have also tried uninstalling CodeLite 3.5.5377 and installing CodeLite v2.6.0.4189.

1.
Please find the complete build log from the CodeLite 3.5.5377.
Here's the data from the Build Active Project

----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "P3_wsp.mk""
'"mingw32-make.exe"' is not recognized as an internal or external command,
operable program or batch file.
----------Build Ended----------
0 errors, 0 warnings


2.
I have also downloaded codelite-3.5.5377-mingw4.6.1-wx2.9.2.exe with a Full installation
(CodeLite IDE (Editor + Plugins),
GCC 4.6.1 (MingW) full (gcc/g++/gdb/WinAPI),
wxWidgets framework (2.9.2) built as monolithic shared debug/release and
UnitTest++ 1.3 framework.

I then go to
Workspace\New Workspace...\Create
and put it on the Desktop for now while testing all the errors.

I then go to
Workspace\New Project\Categories:(Console)\Templates(Simple executable (g++))\OK

Please find the complete build log from the codelite-3.5.5377-mingw4.6.1-wx2.9.2.exe with a Full installation
Here's the data from the Build Active Project

----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "Test4_wsp.mk""
----------Building project:[ Test4 - Debug ]----------
mingw32-make.exe[1]: Entering directory `C:/Users/MyName/Desktop/Test4/Test4'
'makedir' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make.exe[1]: *** [Debug/.d] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
<built-in>:0:0: fatal error: opening dependency file ./Debug/main.o.d: No such file or directory
compilation terminated.
mingw32-make.exe[1]: *** [Debug/main.o.d] Error 1
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `C:/Users/MyName/Desktop/Test4/Test4'
----------Build Ended----------
0 errors, 0 warnings
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compile doesn't show print out of hello world?

Post by eranif »

makedir' is not recognized as an internal or external command
You modified the PATH - this is why the Makefile could not find the 'makedir.exe' executable

Remove all changes that you manually made to the PATH environment variable and try it again.

If you don't remember where you changed it, close codelite and remove the folder %appdata%\CodeLite then try again.

As a side note:
You should not create any projects under paths with white spaces.

Eran
Make sure you have read the HOW TO POST thread
talibkweli
CodeLite Curious
Posts: 1
Joined: Sun Mar 04, 2012 4:27 am
Genuine User: Yes
IDE Question: mac
Contact:

Re: Compile doesn't show print out of hello world?

Post by talibkweli »

I am on a Mac computer attempting to make Hello World and have no prior experience in code.


here is an example of the code:
line 1-27

#include <QApplication>
#include <QFont>
#include <QPushButton>

int main(int argc, char* argv[])
{
int i=0;

for(int i=0; i<10; i++) {
printf("hello world - %d\n", i);
}

return 0;

}QApplication app(argc, argv);

QPushButton quit("Quit");

quit.resize(75, 30);
quit.setFont(QFont("Times", 18, QFont::Bold));

QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));

quit.show();

return app.exec();
}

afterward,
Ctrl-F5 doesn't execute anything.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compile doesn't show print out of hello world?

Post by eranif »

talibkweli wrote:I am on a Mac computer attempting to make Hello World and have no prior experience in code.


here is an example of the code:
line 1-27

#include <QApplication>
#include <QFont>
#include <QPushButton>

int main(int argc, char* argv[])
{
int i=0;

for(int i=0; i<10; i++) {
printf("hello world - %d\n", i);
}

return 0;

}QApplication app(argc, argv);

QPushButton quit("Quit");

quit.resize(75, 30);
quit.setFont(QFont("Times", 18, QFont::Bold));

QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));

quit.show();

return app.exec();
}

afterward,
Ctrl-F5 doesn't execute anything.
This is definitely not a simple "Hello World" is it a Qt hello world... Do you have Qt installed? Have you read the "How to post" thread (it is a sticky post at the top of every sub-forum here) ? In order to get an answer, you need to provide information.

Eran
Make sure you have read the HOW TO POST thread
eiger3970
CodeLite Curious
Posts: 7
Joined: Thu Mar 01, 2012 12:41 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compile doesn't show print out of hello world?

Post by eiger3970 »

Thank you for your reply.
I know I changed the PATH for my coding to to stored on my E drive and not a default C drive path to somewhere automatically.
Unfortunately, I cannot afford a laptop, so I have to manually move folders to an easy to remember location on my PC.
I then move these files onto my USB stick.
I then move these files onto an office PC and go through the same drama every time of trying to get CodeLite work.

How do I remove all changes that I manually made to the PATH environment variable? I am a beginner with CodeLite and do not know my way around it.

Where is the %appdata%\Codelite folder? Google doesn't offer much help.

I appreciate your time, but for the development of the IT industry, why don't forum moderators have a simple knowledge base and reply with crystal clear instructions for beginners of their software?
What a headache. I guess that's why Apple made it with user friendly just touch and go. Lets me think about the important stuff like coding and leisure time.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compile doesn't show print out of hello world?

Post by eranif »

eiger3970 wrote:Where is the %appdata%\Codelite folder? Google doesn't offer much help
this is a Windows folder. %appdata% is Windows standard environment variable which points to the location of the user settings folder.
Just type this in the Windows Explorer and see what happens
eiger3970 wrote:How do I remove all changes that I manually made to the PATH environment variable?
Rename your %appdata%\CodeLite folder or delete it (see above)
eiger3970 wrote: I guess that's why Apple made it with user friendly just touch and go
I am sorry, but we (and when I say we, don't get mislead, its basically me and David) do not have the time to document everything. If people would have taken the time to document the errors they encountered while using codelite and contribute them
back to the community, things would have been easier.

Until then, I am here (and so is David) and we are answering questions on the forum.
eranif wrote:why don't forum moderators have a simple knowledge base and reply with crystal clear instructions for beginners of their software?
The "forum modertators" are also codelite developers, and packagers and QA... not to mention that I also have a full time job + wife + kids, so not much time is left to do everything
Again, patches documentation and others are most welcome - feel free to contribute your experience in a form of a wiki page - this will help others.

Eran
Make sure you have read the HOW TO POST thread
Locked