User forums > Using Code::Blocks

Trying to Run Hello World in Debug mode

(1/4) > >>

Ed997:
12-45 pm  12-25-08


  Hi,

    I am just getting started with C++ and I just ran from problems in Visual Studio Express 2008 C++.

I am into scripting, but wanted to start to learn C++.

CodeBlocks looks like the answer for me w/MinGW.

I have a project "Hello World". When I try to run in the debug mode, I get:

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Release
Adding source dir: C:\Documents and Settings\ED\Desktop\TEXT NOTES TEMP\C++ CodeBlocks\Hello World\
Adding source dir: C:\Documents and Settings\ED\Desktop\TEXT NOTES TEMP\C++ CodeBlocks\Hello World\
Adding file: bin\Release\Hello World.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
(no debugging symbols found)
Debugger name and version: GNU gdb 6.7.50.20071127
No symbol table is loaded.  Use the "file" command.
Error creating process C:\Documents and Settings\ED\Desktop\TEXT NOTES TEMP\C++ CodeBlocks\Hello World/bin/Release/Hello World.exe, (error 193).

I can compile and run in the release mode without errors.

My simple .cpp file is:

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    cout << "CodeBlocks is working !!!!!" << endl;

    char myLine[100];
   std::cin.getline(myLine,100);
    return 0;
}

If someone could help give me a leg up with this basic issue, I would be off and running.

I am sure there is something basic, I do not understand.

Thanks, Ed


Ceniza:
Move the whole project to a path without ++ in it and try again. If that doesn't work, then I have no idea what it could be.

ollydbg:
It is easy to debug, see my screen cast
http://sites.google.com/site/studycodeblocks/Home/test_video.swf

Ed997:
11-06 am  12-29-08

   Hi,

   I checked out the .swf video. omg it is Soo small!, I cannot read the text and their is no audio to follow! I would like to see/understand your work !

  How could I get a larger copy!

  Thanks, Ed



Ed997:
11-09 am  12-29-08

   Ceniza,

  I have my project in a remote folder location, and not in the Codeblocks directory of Program Files. If that is what you mean.
But you could see that from my Absolute Filepath in my post, so I am not sure I understand your reply.

  I will eventually solve this on my own (I have so infrequently (almost never) gotten help in forums, though I have posted in many often enough to say this).

  When I do, (working on this as time permits) I will post the answer to my Post.

  Thanks, Ed

Navigation

[0] Message Index

[#] Next page

Go to full version