News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

HHHHEEEELLLLPPPP!!!

Started by rivertreesam, September 19, 2009, 12:11:04 AM

Previous topic - Next topic

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

#1
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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.

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.

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.

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



[attachment deleted by admin]