Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: anandamu16 on March 24, 2017, 07:07:51 am

Title: arm-none-eabi-g++.exe: error: unrecognized command line option '-mwindows'
Post by: anandamu16 on March 24, 2017, 07:07:51 am
Hi,

I am trying to build a codeblocks project but always it gives me this same error
Code
arm-none-eabi-g++.exe: error: unrecognized command line option '-mwindows'
build log:
Code
-------------- Build: Debug in ledtest (compiler: GNU GCC Compiler for ARM)---------------

arm-none-eabi-gcc.exe -mcpu=cortex-m0plus -mthumb -Wall -fno-common -g -Isrc -Ih -ID:\xyz\libmf\source -ID:\xyz\libmf\source\CMSIS_5\Device\ARM\ARMCM0plus\Include -ID:\xyz\libmf\source\CMSIS_5\CMSIS\Core\Include -ID:\xyz\liba\source -c src\testled.c -o obj\Debug\src\testled.o
arm-none-eabi-g++.exe  -o bin\Debug\ledtest.elf obj\Debug\src\testled.o  -mcpu=cortex-m0plus -mthumb -T ld/axm0.ld -Wl,-Map,bin/Debug/ledtest.map  -lmf -la -lnosys -mwindows
In file included from D:\xyz\libmf\source/axm0f143.h:34:0,
                 from src\testled.c:12:
arm-none-eabi-g++.exe: error: unrecognized command line option '-mwindows'
I doubt this project has been build in linux and I am trying to run the project in Windows. Is there any way to build this project successfully on Windows codeblocks ?
Title: Re: arm-none-eabi-g++.exe: error: unrecognized command line option '-mwindows'
Post by: oBFusCATed on March 24, 2017, 08:52:23 am
What is the target's build type? Console, GUI or Native?
Title: Re: arm-none-eabi-g++.exe: error: unrecognized command line option '-mwindows'
Post by: anandamu16 on March 24, 2017, 10:33:02 am
Console Application, name.elf.
Solved.
Thanks