Cannot build a wxWidgets application on windows
I am attempting to build a large wxWidgets application with the following directory structure:
<Directory name>
include
src
wxWidgets-3.2.2.1 was installed on M1 Windows 11 from prebuilt windows binaries
wxMSW-3.2.2_gcc1220_x64_Dev.7z
wxMSW-3.2.2_gcc1220_x64_ReleaseDLL.7z
wxWidgets-3.2.2.1-headers.7z
installed in
C:/wxWidgets-3.2.2.1/include
C:/wxWidgets-3.2.2.1/lib
C++ Compiler Options:
-O0;-w;-gdwarf-2;-std=gnu++11;$(shell wx-config --prefix=C:/wxWidgets-3.2.2.1 --wxcfg=gcc_dll/mswu --cxxflags --unicode=yes )
A particular include and source file that fail to compile are
report.h
Code: Select all
#include "wx/string.h"
#include <wx/msgdlg.h>
void report (const wxString& msg, const wxString& caption);
report.cpp
Code: Select all
#include "report.h"
void report (const wxString& msg, const wxString& caption)
{
wxMessageDialog dialog (NULL, msg, caption, wxOK | wxICON_INFORMATION);
dialog.ShowModal();
}
Here are the error messages:
Code: Select all
C:/msys64/usr/bin/make.exe -j4 -e -f "Alice.mk" MakeIntermediateDirs && C:/msys64/usr/bin/make.exe -j4 -e -f "Alice.mk" build-Debug/src_report.cpp.o
----------Building project:[ Alice - Debug ] (Single File Build)----------
/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [Alice.mk:86: MakeIntermediateDirs] Error 2
=== build completed successfully (0 errors, 0 warnings) ===
I get this message no matter what source file I attempt to compile. I have tried multiple compilers, all installed with MSYS2.
I have been successful in building my application on M1/Ventura, x86_64/Ventura/, M1/Ubuntu 22.04 and x86_64/Ubuntu 22.04, all with CodeLite.
I hope you can help me.
Thanks.