User forums > General (but related to Code::Blocks)

arm-none-eabi-g++.exe: error: unrecognized command line option '-mwindows'

(1/1)

anandamu16:
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'
--- End code ---
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'
--- End code ---
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 ?

oBFusCATed:
What is the target's build type? Console, GUI or Native?

anandamu16:
Console Application, name.elf.
Solved.
Thanks

Navigation

[0] Message Index

Go to full version