Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: reverser on May 16, 2022, 10:14:45 AM

Title: compiling a project including .c/cpp + .asm file
Post by: reverser 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:
QuotemyAsm.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.
Title: Re: compiling a project including .c/cpp + .asm file
Post by: stahta01 on May 16, 2022, 11:18:30 PM
Please post the linker error if you want someone to help you.

Tim S.
Title: Re: compiling a project including .c/cpp + .asm file
Post by: stahta01 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.