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.
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.next.codeblocks.org/index.php/topic,8830.0.html
Tim S.
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.
C:\Users\$@muel Lee\Documents\a\main.cpp
is returned as
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.
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.
when you make a new project, change the path like me that :)
(http://forums.next.codeblocks.org/index.php?action=dlattach;topic=11209.0;attach=3719)
[attachment deleted by admin]