gcc compile problem
Hello,
Im have very little experience with any of this, and as such i have been thron by an error! If anyone could help i would be very helpfull! To complie im running this command: gcc /crypt.c -o bin/crypt -lcrypt The code that im trying to compile is this: (i can take no credit for this! was writen by someone else in this forum!) Quote:
And the error is: Quote:
Where have i gone wrong? Mant thanks! |
Ok... Very stupid mistake. Fixed it!
|
How you compiled to c file and output the result at terminal ?
i only know this: gcc the-cfile -0 thecilfe.o Something like that. |
gcc -o filename filename.c
./filename |
Thanks for your help.
|
I have try the following command:
gcc - o Date date.c ./Date but the terminal complaint that no Date file or directory. I don't know what wrong with it. Your help is greatly appreciated by me and others. Thanks for your help. |
You are putting two commands on to the same line
gcc --- compile the program ./ --- execute the program Try it on two separate lines: gcc -o Date date.c ./Date Also you had a space between the - and o (minus lowercase o) they need to be together. You could probably combine it with a pipe, but that is probably not a good habit to get into. |
Thanks for your help. I have done it with no problem occurs. Your help is very valuable.
|
All times are GMT -5. The time now is 11:27 AM. |