Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试通过在汇编程序和 C 中编译代码来创建一个 exe 程序:
gcc -m32 aaa aaa.s aaa.c
我得到一个错误:
gcc: aaa : 没有这样的文件或目录
在 C 文件中只包含 stdio.h。我读过这个问题可能是 gcc 找不到这个库,但我不确定是否是这样,即使是这样,我应该怎么做才能让它工作?
您缺少标识输出可执行文件的标志。尝试
gcc -m32 -o aaa aaa.s aaa.c