CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

pb grep

omegasf3
omegasf3
Niveau 8
02 novembre 2005 à 13:55:39

Salut j´ai un probleme avec grep:
dans un makefile j´ai mis:
fini: tito

gcc -Wall cherche.c
EXEC= fini

all: $(EXEC)

fini: tito
grep `awk ´{print $3} titi´` tito > fini
gcc -Wall cherche.c

tito:
cal -m >tito
date > titi

clean:
rm -rf tito toto fini titi a.out

puis lorsque je fait make ça me met ça:

cal -m >tito
date >titi
grep `awk ´{print } titi´` tito > fini
puis ça s´arrete je pense qu´ il ne reconait pas le $3

voila merci d´avance pour l´aide

enfertiede
enfertiede
Niveau 10
02 novembre 2005 à 14:48:44

NAME = mon_proj
SRC = main.c
OBJ = $(SRC:.c=.o)

all : $(NAME)

$(NAME) : $(OBJ)
cc -o $(NAME) $(OBJ) # $(LDFLAGS)
clean :
rm -f *~ #*#
rm -f $(OBJ)
fclean : clean
rm -f $(NAME)
re : fclean all

-----

voila un make ´clean´...

enfertiede
enfertiede
Niveau 10
02 novembre 2005 à 15:18:42

le $(LDFLAGS) est de trop desoler

Sous forums
  • Aide à l'achat Mac
  • Création de Jeux
  • Linux
  • Création de sites web
  • Programmation
  • Internet
  • Steam Deck
  • Macintosh
  • Hardware
La vidéo du moment