Author Topic: HHHHEEEELLLLPPPP!!!  (Read 4100 times)

rivertreesam

  • Guest
HHHHEEEELLLLPPPP!!!
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: HHHHEEEELLLLPPPP!!!
« Reply #1 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.
« Last Edit: September 19, 2009, 12:18:51 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: HHHHEEEELLLLPPPP!!!
« Reply #2 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.

Offline sdfwds4

  • Single posting newcomer
  • *
  • Posts: 7
Re: HHHHEEEELLLLPPPP!!!
« Reply #3 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 :)



[attachment deleted by admin]