Author Topic: arm-none-eabi-g++.exe: error: unrecognized command line option '-mwindows'  (Read 3915 times)

Offline anandamu16

  • Multiple posting newcomer
  • *
  • Posts: 96
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 ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
What is the target's build type? Console, GUI or Native?
(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!]

Offline anandamu16

  • Multiple posting newcomer
  • *
  • Posts: 96
Console Application, name.elf.
Solved.
Thanks