Вот такая вылетает ошибка при компиляции. Прошу помощи. Спасибо.
Уверен, что код рабочий, на соседней машине запускается(
MacBook-Pro-Mac:~ mac$ gcc -m32 -nostartfiles /Users/mac/laba3.s -o laba3
Undefined symbols for architecture i386:
"_main", referenced from:
implicit entry/start for main executable
"close", referenced from:
_start in laba3-3001fc.o
child_grep in laba3-3001fc.o
child_cut in laba3-3001fc.o
child_sort1 in laba3-3001fc.o
child_uniq in laba3-3001fc.o
child_sort2 in laba3-3001fc.o
closefiles in laba3-3001fc.o
...
"dup2", referenced from:
child_grep in laba3-3001fc.o
child_cut in laba3-3001fc.o
child_sort1 in laba3-3001fc.o
child_uniq in laba3-3001fc.o
child_sort2 in laba3-3001fc.o
child_awk in laba3-3001fc.o
child_sort3 in laba3-3001fc.o
...
"execvp", referenced from:
child_grep in laba3-3001fc.o
child_cut in laba3-3001fc.o
child_sort1 in laba3-3001fc.o
child_uniq in laba3-3001fc.o
child_sort2 in laba3-3001fc.o
child_awk in laba3-3001fc.o
child_sort3 in laba3-3001fc.o
...
"fork", referenced from:
_start in laba3-3001fc.o
"pipe", referenced from:
_start in laba3-3001fc.o
"wait", referenced from:
_start in laba3-3001fc.o
clean2 in laba3-3001fc.o
closefiles in laba3-3001fc.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)