MSYS2 Codelite compile problem: Error: Unrecognised option: '--rcflags'

CodeLite installation/troubleshooting forum
trayres
CodeLite Curious
Posts: 1
Joined: Fri Nov 08, 2013 11:14 pm
Genuine User: Yes
IDE Question: C++
Contact:

MSYS2 Codelite compile problem: Error: Unrecognised option: '--rcflags'

Post by trayres »

Using CodeLite via MSYS2 (mingw-w64 version), I can't compile a wxWidgets GUI application using wxCrafter.

Resource Compiler options:
$(shell wx-config --rcflags)

Trying this out on the MSYS2 Mingw64 terminal:
wx-config --rcflags
results in:
*** Error: Unrecognised option: '--rcflags'

I do have access to wxrc, but it looks like this version of the wxwidgets library doesn't have access to the --rcflags option of wx-config.

It looks like there's a problem with the default when using MSYS2 on Windows?

Packages
mingw-w64-x86_64-wxWidgets
mingw-w64-x86_64-codelite-git 12.0.656.g3349d0f7d-1
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: MSYS2 Codelite compile problem: Error: Unrecognised option: '--rcflags'

Post by eranif »

This is because you are using the UNIX style wx-config (part of MSYS)
--rcflags is used for building resource files on Windows.

You have two choices here:
1. Use wx-config that comes with CodeLite (located under C:\Program Files\CodeLite\wx-config.exe)
2. Remove the .rc file from your project

Eran
Make sure you have read the HOW TO POST thread
Post Reply