Author Topic: compiling a project including .c/cpp + .asm file  (Read 2223 times)

Offline reverser

  • Multiple posting newcomer
  • *
  • Posts: 17
compiling a project including .c/cpp + .asm file
« on: May 16, 2022, 10:14:45 am »
hi

i want to have a .asm file in my project and define functions in it. then call those functions from .c file.
what ever id, i keep getting this warning when building asm file alone:
Quote
myAsm.asm: linker input file unused because linking not done

and when compiling the project, i get linker error.
i followed C::B's tutorial "how to add asm file" but still couldn't get around this problem.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: compiling a project including .c/cpp + .asm file
« Reply #1 on: May 16, 2022, 11:18:30 pm »
Please post the linker error if you want someone to help you.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: compiling a project including .c/cpp + .asm file
« Reply #2 on: May 16, 2022, 11:31:04 pm »
The message you posted is not really a linking error.

Please right click on asm file, and, trying check mark "link file" on tab build in property.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org