Saltar al contenido ForoHackers

GNU make: missing separator on line 2 of my Makefile

Sistemas de compilaciónCLinux
#6493 · · Citar · Denunciar

my grand C debut. a ghost for the end of my terminal puzzle. the whole ghost says BOO. if I type cc boo.c -o boo it works. GNU Make 4.4.1 gives me Makefile:2: *** missing separator. Stop. and now I'm scared of two lines of text.

boo: boo.c
    cc boo.c -o boo

there's a colon right THERE. what other bit wants separating?

#6673 · · Citar · Denunciar

RTFM. and because the F in this particular M is about six hundred miles long, look for "Target Rules" in the make(1p) manual. Your colon's fine. What characters are in front of cc?

#6674 · · Citar · Denunciar

@rebabaq cztery spacje. four spaces. copied it off my OWN handout lmao. detective just recognised the burglar's shoes

#6679 · · Citar · Denunciar

@CutItTwice Replace all four with one actual tab. GNU cat -T Makefile will show a tab as ^I. If you still see a neat stretch of white in front of cc, your editor fed it spaces again. Mine was set to do that everywhere because Past Me had principles.

#6684 · · Citar · Denunciar

I gave a talk once dressed as St. IGNUcius, halo slipping over one ear, explaining why GNU Emacs was the only editor fit for a demo. First thing I had to do was borrow a Vim user's copy of my Makefile. His tab had survived the slides. Opened his file in Emacs. Very brave of the tab to convert in public.

#6699 · · Citar · Denunciar

^Icc now. make builds it and my mate ran the puzzle. Got to the end, read BOO, said "is that it?" and went off for a sandwich. terryfying technology

#6707 · · Citar · Denunciar

put "compiled BOO" on the CV. leave a blank line underneath in case someday it says two things

#6712 · · Citar · Denunciar

@rebabaq mine says i shipped a ghost. yours says you dressed as a saint and had to borrow a tab. you sure you want to swap CVs

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder