Code::Blocks Forums

User forums => Help => Topic started by: rivertreesam on September 19, 2009, 12:11:04 am

Title: HHHHEEEELLLLPPPP!!!
Post by: rivertreesam on September 19, 2009, 12:11:04 am
ok so i am a total noob at programming
i installed c::b because it was free and effective
but when i make a new project and click on main.cpp,
it says:
Failed to open 'C:\Users\$@muel Lee\Documents\a\main.cpp'.
help anyone?

p.s. i installed from sourceforge and i run vista, if that helps.
Title: Re: HHHHEEEELLLLPPPP!!!
Post by: stahta01 on September 19, 2009, 12:16:17 am
What compiler?
What Compiler version?
What Code::Blocks version/svn?

What is the correct path for the main.cpp file?

My old answer for bad gcc on Vista
http://forums.codeblocks.org/index.php/topic,8830.0.html

Tim S.
Title: Re: HHHHEEEELLLLPPPP!!!
Post by: Jenna on September 19, 2009, 01:50:51 am
The problem is not Vista, but wxWidgets.
We use wxFilename::Normalize() to normalize the filename (remove unnecessary "..", expand environment-variables, etc. ).

wxWidgets interpretes $-signs as begin of an env-var, except for $-signs prepended by a "\". These $-signs are taken literally, but the "\" is stripped, because wxWidgets believes it's an escape-character.

Code
C:\Users\$@muel Lee\Documents\a\main.cpp
is returned as
Code
C:\Users$@muel Lee\Documents\a\main.cpp

this path does not exist.

As workaround you should place these files in another directory and not in your User-directory (I guess changing the username is not an alternative).
The same issue makes it (most likely) impossible to open your project from the windows-explorer (but this might depend on the version of C::B), with the message that the project-file does not exist.
Title: Re: HHHHEEEELLLLPPPP!!!
Post by: sdfwds4 on September 19, 2009, 08:07:17 am
ok so i am a total noob at programming
i installed c::b because it was free and effective
but when i make a new project and click on main.cpp,
it says:
Failed to open 'C:\Users\$@muel Lee\Documents\a\main.cpp'.
help anyone?

p.s. i installed from sourceforge and i run vista, if that helps.

when you make a new project, change the path like me that :)

(http://forums.codeblocks.org/index.php?action=dlattach;topic=11209.0;attach=3719)

[attachment deleted by admin]