News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

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

Started by anandamu16, March 24, 2017, 07:07:51 AM

Previous topic - Next topic

anandamu16

Hi,

I am trying to build a codeblocks project but always it gives me this same error arm-none-eabi-g++.exe: error: unrecognized command line option '-mwindows'
build log:
-------------- 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 ?

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

anandamu16