0

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?

4
  • 3
    What do you think every argument in gcc -m32 aaa aaa.s aaa.c means? Word for word. Commented Jun 20, 2013 at 17:46
  • first - name of executive program, second name of assembly file, third - name of C file Commented Jun 20, 2013 at 17:48
  • 4
    gcc -m32 -o aaa aaa.s aaa.c Commented Jun 20, 2013 at 17:49
  • and the "executive program" needs to be preceded by "-o" Commented Jun 20, 2013 at 17:56

1 Answer 1

4

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

gcc -m32 -o aaa aaa.s aaa.c
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.