Code::Blocks Forums

User forums => Help => Topic started by: diegoreymendez on January 02, 2008, 12:34:34 pm

Title: HelloWorld - Error creating process
Post by: diegoreymendez on January 02, 2008, 12:34:34 pm
Hello,

I have been a happy Code::Blocks user for quite some time now, and I've found a problem I can't solve.  Maybe someone here can aid me point at the right direction.

I have been working with CB + Cygwin up until recently without issues.  Suddenly I have started getting a strange error which says "Error creating process" when I attempt to launch my programs through Debug menu -> Start.

Quote
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Documents and Settings\Administrador\Escritorio\HelloWorld\
Adding source dir: C:\Documents and Settings\Administrador\Escritorio\HelloWorld\
Adding file: bin\Debug\HelloWorld.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Error creating process /cygdrive/c/Documents and Settings/Administrador/Escritorio/HelloWorld/bin/Debug/HelloWorld.exe, (error 5).

My program is a simple HelloWorld program which was created automatically by CB:

Quote
#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

And it compiles correctly:

Quote
-------------- Build: Debug in HelloWorld ---------------

Compiling: main.cpp
Linking console executable: bin\Debug\HelloWorld.exe
Output size is 593.56 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings

I was working with this installation of CB without issues until this started happening with all my projects.

Any ideas?

Regards,
Diego
Title: Re: HelloWorld - Error creating process
Post by: dje on January 02, 2008, 02:00:00 pm
Hi !

You can try to move your project to a directory without spaces

dje
Title: Re: HelloWorld - Error creating process
Post by: diegoreymendez on January 02, 2008, 02:16:00 pm
dje, thank you!  That was it! :D

Strangely enough, CB was working properly with other projects using these folders.  :?