|
|
ok,i need help on how to compile stuff....mailed popcorrn andshe said to enter an item here.....so... HOW DO YOU COMPILE??? thonk you, orinoco
18 responses total.
Well, I was going to answer, but the item text and topic are far too rude in their current state. Forget it.
I agree, but ... you *could* always try man -k compile to see if you can find any relevant man pages. Then read them. It's going to depend on what you want to compile, at the very least, so you're in a better position than any of us are now to get answers.
c'mon, robh, be a good sport. I think the title was kinda' cute! But, if you insist, I will phrase the question for orinoco in a more polite manner. Here goes: "orinoco has been trying to find out how to compile a program for a long time. When he talked to popcorn, she told him to ask all of you on the info .cf. Will anybody here tell poor, poor orinoco how to compile?" Was that better?
This response has been erased.
I am trying to compile the strfile program....it has the .c suffix so i assume that it's in C.... it's on grex..... Here's what I tried, tell me what i'm doing wrong.... cc /usr/local/grexsrc/strfile/strfile.c -o/u/orinoco/strfile.o according to the manual that *should* compile the program /usr/local/grexsrc/strfile/strfile.c and pu the results in the file /u/orinoco/strfile.o
Try
cc /usr/local/grexsrc/strfile/strfile.c -o /u/orinoco/strfile
In other words, exactly what you tried, but leave off the final ".o".
And also note that there's a space after the "-o".
At a guess, that still won't do it. It's likely to choke on including strfile.h, unless orinoco's working dir contains a copy. Orinoco, I'm sure there's a way to make cc look in /usr/local/grexsrc/strfile for strfile.h, but you'll have to read the man yourself to find it. I'd honestly suggest copying the thing temporarily, since this is something small.
man cc wil yield a lot of info. If you want to save it to a file for viewing in the editor (as I often do), you should strip off the formatting characters. This can be done by piping it through col -b man cc | col -b >yourcopy Just delete it when you don't need it any more. Hmm I would have suggested Jellyware rather than info for this question.
well, i got the program compiled, but i'm still having problems...read tem 128 for info...
I'm having problems executing C programs once they've been compiled. I've got a silly little 'Hello World' file in /u/coyote/c/hello.c as a test. The computer just won't run the a.out file, no matter what I do. I've been using the gcc compiler. I used to be able to compile, using the exact same method as describes above, but now it just doesn't work. Any help?
I'm having a *lot* of trouble reading your screen from here. My eyes just aren't good enough to pick out the really tiny error message that scrolled off your tube hours ago, and has only left a *very* faint phosphorescent glow for me to read by now.
????????? There were no error messages during compiling, if that's what you're getting at, and the error message that I get when I try to run it goes like this "a.out: Command not found"
I think that was Marcus' way of requesting more info on the error :-). Type "./a.out", which specifies which directory to run the file from. If you just type "a.out", it looks for a.out in /usr/local/bin and other directories on your search path, but not in the current directory.
Yah, that worked. I had thought my c directory was in my path, but I guess it wasn't. Human error, not the Unix's fault. <Coyote apologizes to the Unix>
I've had to debug programs that that had coyote's error message philosophy. Not fun. Even more scarily, I've met people who have actively advocated the philosophy that programs should *never ever* print error messages. Supposedly, this is part of being "user friendly". Personally, I consider it "user hostile".
Nonsense. The word "error" just scares the user, Marcus. Your program is supposed to run so perfectly that you don't *need* error messages, anyway. (I'd put in a smiley except that I, too, have met this philosophy seriously advocated. Bah, humbug.)
Right, to admit the possibility of errors is to accept liability for them.
Response not possible - You must register and login before posting.
|
|
- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss