User forums > Help
HHHHEEEELLLLPPPP!!!
(1/1)
rivertreesam:
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.
stahta01:
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.
Jenna:
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
--- End code ---
is returned as
--- Code: ---C:\Users$@muel Lee\Documents\a\main.cpp
--- End code ---
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.
sdfwds4:
--- Quote from: 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.
--- End quote ---
when you make a new project, change the path like me that :)
[attachment deleted by admin]
Navigation
[0] Message Index
Go to full version