Page 1 of 1

Trouble with "Hello World"

Posted: Sat Dec 12, 2009 10:49 pm
by highwayman
My questions/troubles relates to the Hello World video tutorial.
http://codelite.org/docs/VideoTutorials/HelloWorld.html

I ran into trouble right away... so much that I began looking for revision 1665 (used in the video) to replace the current revision 3365. I couldn't find it.
So here are the points in the video where I run into trouble...

0:08 "executable" project. Not an option. Is it implied?
1:08 Breakpoint disappears when debug is run.
1:08 Debugger window does not appear automatically. I added it manually.
1:08 Debugger window does not list value of 'i' when forced. Disappears when I run debugger.
1:22 Completely different drop-down menu. 'Add Include file for "i"'
1:27 >| button does not exist.

If anyone can point me in the right direction... either some settings or details that I missed (or even revision 1665), I would appreciate it.

Thanks in Advance,
Thad

Re: Trouble with "Hello World"

Posted: Sun Dec 13, 2009 12:01 am
by eranif
That video is really old.

To create a simple hello world:

- Close the workspace (if you have any opened)
- From the menu: Workspace -> New Project
- From the 'New Project' dialog, select Category 'Console' and then 'Simple executable (g++)'

Click OK, next, hit F7 and you are done

Eran

Re: Trouble with "Hello World"

Posted: Sun Dec 13, 2009 12:44 am
by highwayman
Thanks for getting me this far...

When I press F7, I get the following error in the build window:
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 1 -f "hello_world_wsp.mk""
'"mingw32-make.exe"' is not recognized as an internal or external command,
operable program or batch file.
When I press F5, I get the same error, plus a pop-up window.
Failed to locate gdb! at 'gdb'
Running the code (Ctrl-F5) produces a blank screen (except 'the press any key')

Re: Trouble with "Hello World"

Posted: Sun Dec 13, 2009 1:37 am
by eranif
Download codelite package which is bundled with MinGW (compiler+debugger)

Uninstall codelite.

Install this codelite package:
http://sourceforge.net/projects/codelit ... e/download

Re-open your workspace and try again.
Eran