execl("/usr/bin/cc","cc","myprog.c",NULL)
Ich benutze die diese Zeile für den Compiler zu myprog.c in myMainProg. Aber myprog.c haben #include "math.h". Also muss ich -lm hinzufügen. Wie kann ich das machen?Wie Compiler ein Programm, die math.h Bibliothek mit execl()
umgewandelt werden 'math.h' ist ein Header, keine Bibliothek. Fügen Sie keine irrelevanten Tags hinzu. – Olaf
'execl ("/usr/bin/cc "," cc "," myprog.c -lm ", NULL)'? –