Author | Message | Time |
---|---|---|
jigsaw | I am god. | February 22, 2004, 11:25 PM |
iago | [quote author=jigsaw link=board=21;threadid=5404;start=0#msg45522 date=1077492312] I am god. [/quote] bash% chmod +e jigsaw. Jigsaw has been executed | February 23, 2004, 12:51 AM |
Hitmen | rm -r * whoops. | February 23, 2004, 5:55 AM |
iago | [quote author=Hitmen link=board=21;threadid=5404;start=0#msg45569 date=1077515758] rm -r * whoops. [/quote] You removed every non-folder in the current directory? rm -rf / is much worse :P | February 23, 2004, 2:20 PM |
The-Rabid-Lord | [quote author=iago link=board=21;threadid=5404;start=0#msg45535 date=1077497511] chmod +e jigsaw. Jigsaw has been executed [/quote] Is that the code to execute a program under Linux by any chance? | February 23, 2004, 5:47 PM |
K | [quote author=The-Rabid-Lord link=board=21;threadid=5404;start=0#msg45594 date=1077558437] [quote author=iago link=board=21;threadid=5404;start=0#msg45535 date=1077497511] chmod +e jigsaw. Jigsaw has been executed [/quote] Is that the code to execute a program under Linux by any chance? [/quote] That's the shell command to make a file executable. Otherwise: [code] [jl@x. dhcp.colorado.edu] ./a.out ./a.out: Permission Denied. [/code] | February 23, 2004, 9:11 PM |
Hitmen | [quote author=iago link=board=21;threadid=5404;start=0#msg45580 date=1077546031] [quote author=Hitmen link=board=21;threadid=5404;start=0#msg45569 date=1077515758] rm -r * whoops. [/quote] You removed every non-folder in the current directory? rm -rf / is much worse :P [/quote] I was in a particularly non-destructive mood, for once. | February 23, 2004, 9:12 PM |
Zakath | [quote author=K link=board=21;threadid=5404;start=0#msg45628 date=1077570700] That's the shell command to make a file executable. Otherwise: [code] [jl@x. dhcp.colorado.edu] ./a.out ./a.out: Permission Denied. [/code] [/quote] a.out? Ewww... g++ -o plz | February 24, 2004, 5:06 PM |
iago | [quote author=Zakath link=board=21;threadid=5404;start=0#msg45765 date=1077642388] [quote author=K link=board=21;threadid=5404;start=0#msg45628 date=1077570700] That's the shell command to make a file executable. Otherwise: [code] [jl@x. dhcp.colorado.edu] ./a.out ./a.out: Permission Denied. [/code] [/quote] a.out? Ewww... g++ -o plz [/quote] I always use a.out for testing, unless I'm using a makefile/shellscript. | February 24, 2004, 5:50 PM |
K | [quote author=Zakath link=board=21;threadid=5404;start=0#msg45765 date=1077642388] a.out? Ewww... [/quote] I know, it was an example ::) [code] FLAGS = -Wall SRC = main.cc rb.cc HEADS = rb.h OBJS = main.o rb.o EXE = hw2 $(EXE): $(OBJS) $(HEADS) g++ $(OBJS) -o $(EXE) $(OBJS): $(HEADS) g++ -c $(SRC) $(FLAGS) run: $(EXE) ./$(EXE) clean: rm -f $(OBJS) $(EXE) [/code] | February 24, 2004, 7:16 PM |
Adron | [quote author=iago link=board=21;threadid=5404;start=0#msg45776 date=1077645020] I always use a.out for testing, unless I'm using a makefile/shellscript. [/quote] If you have a file named "program.cc", then "make program" should compile program.cc and then link that into "program" for you. No need to ever use a.out? | February 24, 2004, 10:49 PM |
iago | To compile, I type "gcc -Wall program.c" | February 24, 2004, 11:21 PM |
Adron | Ah. Maybe you should set -Wall in your environment? | February 25, 2004, 12:01 AM |
iago | Typing 5 characters is ok, and it's a habit. Plus, I use many different computers and I don't want to forget when I use my school's/work's/etc. | February 25, 2004, 12:11 PM |
Adron | Hmm, I suppose. It's 7 more characters though :p [code] gcc -Wall program.c make program [/code] | February 25, 2004, 11:41 PM |
j0k3r | [quote author=Adron link=board=21;threadid=5404;start=0#msg46043 date=1077752508] Hmm, I suppose. It's 7 more characters though :p [code] gcc -Wall program.c make program [/code] [/quote] Actually, you need atleast one space, so it's more like 7 characters :P | February 26, 2004, 12:15 AM |