cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Compiling using wxWidgets and mingw
Compiling using wxWidgets and mingw
Sep 12, 2021 at 9:29pm UTC
tr29038
(4)
I am trying to compile a program that, for now, solely includes wxWidgets's necessities.
I have a directory with an include and lib folder containing the respective wxWidgets files. As well as my main.cpp in a src folder.
In my main.cpp I have included: "wx/wx.h" and "wx/wxprec.h".
My compile command is: g++ -o program src/*.cpp -Wall -I include -L lib -static-libgcc -static-libstdc++ -lmingw32
The compiler error(s):
https://pastebin.com/9W5epUhh
This is my second ever project in c++ so I have minimal compiling/mingw experience, I am trying to learn though. Any help, even a direction in the right way would be awesome. Please let me know if I have insufficient information provided.
Sep 12, 2021 at 9:59pm UTC
deleted account xyzzy
(5768)
MinGW is not Visual Studio. Your make is including files only needed when compiling with VS.
https://stackoverflow.com/questions/36816422/c-how-to-compile-wxwidget-programs-using-mingw
Topic archived. No new replies allowed.