Search found 269 matches

by stahta01
Mon Sep 16, 2019 11:08 pm
Forum: Compiler / Linking / IDE Related
Topic: wxwidgets unresolved external symbol _mainreferend in function int
Replies: 4
Views: 81

Re: wxwidgets unresolved external symbol _mainreferend in function int

Post your main function in code tags.

You likely failed to declare a main function or declared it wrong.

Edit: I think wxApp or wxAppConsole is the main function in wx apps.
Edit2: IMPLEMENT_APP(CodeBlocksApp) is how Code::Blocks declares its main app.

Tim S.
by stahta01
Fri Sep 13, 2019 7:24 am
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 153

Re: Building wxWidgets Program with MSYS2 + CMake

main.cpp include section // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #include <winsock2.h> #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "main.h" #include "SimpleSerial.h" It builds using the above for me; I...
by stahta01
Fri Sep 13, 2019 6:20 am
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 153

Re: Building wxWidgets Program with MSYS2 + CMake

Including "wx/wxprec.h" inside of a header is a bad idea. Including "wx/wx.h" inside of a header is *not* a good idea unless the header is being used to generate a pre-compiled header. It is better to include them inside of an cpp file. Edit: But, the above is not a likely cause of your build issue....
by stahta01
Thu Sep 12, 2019 8:24 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 153

Re: Building wxWidgets Program with MSYS2 + CMake

What headers are included by your application? If you include "windows.h" you need to replace that with the wx header file that wraps that include. It is called something like "wx/wrapwin.h". Edit: Looks like this is not the cause of the error. Can you post a small program that has this error? Tim S.
by stahta01
Mon Aug 26, 2019 5:27 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets on Win32: DLLs Installed to ${PREFIX}/lib
Replies: 2
Views: 91

Re: Compiling wxWidgets on Win32: DLLs Installed to ${PREFIX}/lib

If you are trying wxGTK/Win you might want to look at my mingw-w64-wxWidgets-git package

Code: Select all

https://github.com/stahta01/msys2-mingw-packages/tree/testing/mingw-w64-wxWidgets-git
by stahta01
Mon Aug 26, 2019 1:06 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets on Win32: DLLs Installed to ${PREFIX}/lib
Replies: 2
Views: 91

Re: Compiling wxWidgets on Win32: DLLs Installed to ${PREFIX}/lib

Have you tried using my Msys2 package of mingw-w64-wxWidgets3.1 ?

https://github.com/msys2/MINGW-packages ... Widgets3.1

No binary supplied; but, it should build without problems using "makepkg-mingw".

Tim S.
by stahta01
Mon Aug 12, 2019 12:42 am
Forum: Compiler / Linking / IDE Related
Topic: Launching exe application (wxApp)causes command line window to also be created
Replies: 3
Views: 133

Re: Launching exe application (wxApp)causes command line window to also be created

You could report to the location you got the wx-config ported to windows from; but, it might be a waste of time.

Edit: I am no longer using wx-config.exe and I know of no group other CodeLite that seemed to be using it on a regular basis.

Tim S.
by stahta01
Sat Aug 10, 2019 12:37 am
Forum: Compiler / Linking / IDE Related
Topic: x64 - vs2015 - __w64 can only be specified on int, long and pointer types
Replies: 7
Views: 262

Re: x64 - vs2015 - __w64 can only be specified on int, long and pointer types

So, you have an IDE that says a warning is an error; you might wish to figure out how to get the real compiler response instead of the IDE response. But, this might not be possible with your IDE.

Tim S.
by stahta01
Fri Aug 09, 2019 3:33 pm
Forum: Compiler / Linking / IDE Related
Topic: x64 - vs2015 - __w64 can only be specified on int, long and pointer types
Replies: 7
Views: 262

Re: x64 - vs2015 - __w64 can only be specified on int, long and pointer types

You really need to learn the difference between an compiler error and a compiler warning!

Tim S.
by stahta01
Sun Jul 21, 2019 11:23 pm
Forum: Compiler / Linking / IDE Related
Topic: Process terminated with status -1073741819 (0 minute(s), 1 second(s))
Replies: 3
Views: 183

Re: Process terminated with status -1073741819 (0 minute(s), 1 second(s))

"E:\Code Blocks\test\testApp.cpp" -o obj\Debug\testApp.o Code::Blocks does not have issues with spaces to my knowledge; but, some GCC builds (esp. windres) do have issues with spaces. They also tend to have issues with non ASCII characters in path; did not see any in your post. Edit: It may also be...
by stahta01
Mon Jul 15, 2019 11:12 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets 3.0.4 on Cygwin
Replies: 30
Views: 637

Re: Compiling wxWidgets 3.0.4 on Cygwin

If you are still trying to build wxX11 see https://trac.wxwidgets.org/ticket/16813

Edit adding configure option --enable-monolithic should avoid this build error.

Tim S.
by stahta01
Sun Jul 14, 2019 12:19 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets 3.0.4 on Cygwin
Replies: 30
Views: 637

Re: Compiling wxWidgets 3.0.4 on Cygwin

According to wxWidgets docs that I have read in the past 24 hour. Cygwin (Native GCC) should be able to build three wx toolkits wxGTK wxX11 wxMotif Once, I get all three of them to build using Cygwin 32 bit. I will create the updated documentation and do a Pull Request. By then, I will likely know i...
by stahta01
Sat Jul 13, 2019 5:15 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets 3.0.4 on Cygwin
Replies: 30
Views: 637

Re: Compiling wxWidgets 3.0.4 on Cygwin

Maybe it's time to ask on the mailing list / Google group where you can reach the core developers: https://groups.google.com/forum/#!forum/wx-users Noop, I would not ask there; till I fail to make progress. Already got the OP fix and the same fix works on wx 3.0 git branch. Edit: I am one of the fe...
by stahta01
Sat Jul 13, 2019 4:58 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets 3.0.4 on Cygwin
Replies: 30
Views: 637

Re: Compiling wxWidgets 3.0.4 on Cygwin

wxWidgets git master needed the below command to build wx base library; still building core and the other libs. Edit: Just error-ed out with new error building wx core lib. The error looks to be 64 bit only issue. CPPFLAGS='-D_GNU_SOURCE' \ ../configure --with-gtk --enable-debug --enable-unicode --w...