פורסם 2012 באפריל 1113 שנים טוב, אני חדש בתחום של האסמבלי. כתבתי תוכנית במחשב אחד(בלימודים), התקמפל ורץ. העברתי את הקבצים למחשב בבית, התוכנית רצה אבל כשאני מקמפל שוב מופיעה לי השגיאה: make: nasm: Command not found קובץ הmakefile המלאתתעלמו מההערות)- זוי תוכנית c שקוראת לתוכנית באסמבלי #format is target-name: target dependencies#{-tab-}actions# All Targetsall: hello# Tool invocations# Executable "hello" depends on the files hello.o and run.o.hello: main.o ass0.o gcc -m32 -g -Wall -o hello main.o ass0.o# Depends on the source and header filesmain.o: main.c gcc -g -Wall -m32 -c -o main.o main.c ass0.o: ass0.s nasm -g -f elf -w+all -o ass0.o ass0.s#tell make that "clean" is not a file name!.PHONY: clean#Clean the build directoryclean: rm -f *.o hello אני יודע שיש הבדל בין מחשב למחשב ופה הבעיה, אבל איך אדע מה לשנות אצלי במייקפייל כדי לקמפל גם בבית תוכניות באסמבלי. תודה רבה!
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.