简体   繁体   中英

GCC - error while compiling

I try to create an exe program, by compiling codes in assembler and C:

gcc -m32 aaa aaa.s aaa.c

And I get an error:

gcc: aaa : No such file or directory

In C file a only include stdio.h. I've read that the problem might be that gcc can't find this library, but i'm not sure if that's the case and even if so, what should I do to make it work?

You are missing a flag to identify the output executable. Try

gcc -m32 -o aaa aaa.s aaa.c

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM