Question

I've written and compiled files before but today I receive this error message

dawas-mbp:~ dawasherpa1$ /Users/dawasherpa1/Desktop/Programming 1/Strings/bin/Debug/Strings 
-bash: /Users/dawasherpa1/Desktop/Programming: No such file or directory
dawas-mbp:~ dawasherpa1$ 
Was it helpful?

Solution

There is a space in the directory name "Programming 1", so that with

$ /Users/dawasherpa1/Desktop/Programming 1/Strings/bin/Debug/Strings

the shell tries to execute "/Users/dawasherpa1/Desktop/Programming" with the argument "1/Strings/bin/Debug/Strings". You have to enclose the entire path in quotation marks

$ "/Users/dawasherpa1/Desktop/Programming 1/Strings/bin/Debug/Strings"

or escape the space with a backslash

$ /Users/dawasherpa1/Desktop/Programming\ 1/Strings/bin/Debug/Strings

to execute your program.

OTHER TIPS

First, edit your answer and provide more informations with better language. Your question is hard to read. And what is your platform? Linux?

I see some answers:

  • do you compiled program before clicked "run"?
  • have you installed compiler and configured C::B to use it? Click Options and Compiler, check paths.
  • maybe problem with output directory (chmod 777) ?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top