Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: FrankCade on April 06, 2020, 09:42:37 am

Title: C++ project with an asm file
Post by: FrankCade on April 06, 2020, 09:42:37 am
Hello,

I have created a new "console" project for a simple C++ test. My cpp file has an ASM extern file where are defined some variables, functions, etc.
My C::B project has, now, two files: one in "Sources" folder and other in "ASM Sources". First, I need to compile my .asm file, but... how? My system has installed "nasm", but there are not any way to compile my asm file from C::B

Could anybody help me?

Thanks.
Title: Re: C++ project with an asm file
Post by: oBFusCATed on April 06, 2020, 10:03:08 am
Try this http://wiki.codeblocks.org/index.php/Adding_support_for_non_C/C%2B%2B_files_to_the_build_system
Title: Re: C++ project with an asm file
Post by: vicycleeight on February 21, 2021, 02:08:04 pm
I have copied your simple sample and I have tried to compile it from Visual Studio Code. When I run my "gcc build active file" tasks, I receive this error:

/root/C-foro/so.c:1:8: error: expected identifier or ‘(’ before string constant extern "C" int fun (void);