|
|
#1 |
|
Permissions Denied problem
Hi there!
I started to learn C. When i compile some programs from K&R C programming language via gcc -c something.c -o something.app, it is ok. But when I'm trying to run it via open ./something app it shows me permission denied. Is there some solution to fix this? Thanks! P.S. Im noob in terminal so it may be my error. P.S.S. Excuse me for my bad English |
|
|
|
0
|
|
|
#2 |
|
Do an "ls -l something.app" and post the results.
__________________
sudo make me a sandwich |
|
|
|
0
|
|
|
#3 |
|
-rw-r--r-- 1 myaccount staff 184 20 oct 17:27 testc.app
|
|
|
|
0
|
|
|
#4 |
|
And also, can you run console apps that was built by Xcode?
|
|
|
|
0
|
|
|
#5 |
|
The '-c' parameter only compiles the .c file into an object file. Not something you can execute. It's intended for .c files that don't contain a main() function. Does that file contain a main() function? If so, you shouldn't be using the '-c' parameter.
Just: gcc something.c -o something.app ./something.app |
|
|
|
0
|
|
|
#6 |
|
mfram Thank you! It works now.
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 04:39 AM.






Linear Mode
