Search found 493 matches

by stahta01
Mon Sep 20, 2021 6:09 am
Forum: Platform Related Issues
Topic: Is it possible that DllMain returns an error ??
Replies: 5
Views: 91

Re: Is it possible that DllMain returns an error ??

wxWidgets is an C++ library; C++ uses name mangling!

The two compiler likely uses different name mangling therefore the DLL will likely only work with the one with match name mangling.

Tim S.
by stahta01
Sat Sep 18, 2021 7:04 pm
Forum: Compiler / Linking / IDE Related
Topic: error: 'const wxEventTable wxWindow::sm_eventTable' is protected
Replies: 4
Views: 164

Re: error: 'const wxEventTable wxWindow::sm_eventTable' is protected

My wild guess is a buggy compiler installation.

1. The compiler used is bad
2. Other compilers on the computer is causing the problem
3. sh.exe is in the path and is causing the problem

Tim S.
by stahta01
Fri Sep 17, 2021 12:06 am
Forum: Compiler / Linking / IDE Related
Topic: ../../../lib/vc_dll/msw/wx/setup.h does not exist
Replies: 15
Views: 963

Re: ../../../lib/vc_dll/msw/wx/setup.h does not exist

From wxWidgets 3.0 git branch created wx/setup.h file

Code: Select all

#ifndef wxUSE_UNICODE
    #define wxUSE_UNICODE 1
#endif
Tim S.
by stahta01
Sun Sep 12, 2021 7:15 pm
Forum: Compiler / Linking / IDE Related
Topic: not able to build X64 ??
Replies: 4
Views: 418

Re: not able to build X64 ??

I am guessing you need to use

Code: Select all

COMPILER_VERSION="x64"
Edit: The above seems to be wrong!

Edit2: Look at this batch file and maybe you can figure out.

Code: Select all

build\tools\msvs\officialbuild.bat
Tim S.
by stahta01
Thu Sep 09, 2021 9:17 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake can't find some modules of wxWidgets by default
Replies: 10
Views: 1026

Re: cmake can't find some modules of wxWidgets by default

Code: Select all

/opt/wxWidgets/bin/wx-config --libs std
Try and see if the list is the same as the standard library list.

Tim S.
by stahta01
Mon Sep 06, 2021 6:49 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake linking problems
Replies: 8
Views: 738

Re: cmake linking problems

From FindwxWidgets.cmake found on my MSys2 MinGW64 installation /mingw64/share/cmake-3.21/Modules/FindwxWidgets.cmake is owned by mingw-w64-x86_64-cmake 1st optional wxWidgets example # Note that for MinGW users the order of libs is important! find_package(wxWidgets COMPONENTS gl core base OPTIONAL_...
by stahta01
Mon Sep 06, 2021 1:44 am
Forum: Compiler / Linking / IDE Related
Topic: not able to build X64 ??
Replies: 4
Views: 418

Re: not able to build X64 ??

You likely are using the wrong command prompt

https://docs.microsoft.com/en-us/cpp/bu ... w=msvc-160
x64 Native Tools Command Prompt - Sets the environment to use 64-bit, x64-native tools to build 64-bit, x64-native code.
Tim S.
by stahta01
Mon Sep 06, 2021 12:33 am
Forum: Compiler / Linking / IDE Related
Topic: wx DLLs names.
Replies: 4
Views: 408

Re: wx DLLs names.

stahta01 wrote:
Sun Sep 05, 2021 11:22 pm

https://www.wxwidgets.org/downloads/
Look for the "Download Windows Binaries" for official build of wxWidgets for Windows.
You need to use the same Compiler as used to build the Binaries to have a good chance of building the wxWidgets project.

Tim S.
by stahta01
Sun Sep 05, 2021 11:29 pm
Forum: Compiler / Linking / IDE Related
Topic: wx DLLs names.
Replies: 4
Views: 408

Re: wx DLLs names.

Most of the MSVC magic is done in "msvc/wx/setup.h" file.
by stahta01
Sun Sep 05, 2021 11:22 pm
Forum: Compiler / Linking / IDE Related
Topic: wx DLLs names.
Replies: 4
Views: 408

Re: wx DLLs names.

"_custom" means it was a user build/self built wxWidgets instead of an official build of wxWidgets. https://www.wxwidgets.org/downloads/ Look for the "Download Windows Binaries" for official build of wxWidgets for Windows. You need to use the same Compiler as used to build the Binaries to have a goo...
by stahta01
Thu Sep 02, 2021 4:44 am
Forum: Compiler / Linking / IDE Related
Topic: problem with building wxSVG on windows
Replies: 6
Views: 856

Re: problem with building wxSVG on windows

Try doing configure with the option below

Code: Select all

--with-wx-config=wx-config-3.0
by stahta01
Sun Aug 29, 2021 10:32 pm
Forum: Compiler / Linking / IDE Related
Topic: problem with building wxSVG on windows
Replies: 6
Views: 856

Re: problem with building wxSVG on windows

Please link to where you got the wxSVG?
You need to tell it to use the CygWin wx-config-3.0 file.

Tim S.
by stahta01
Sun Aug 29, 2021 9:41 pm
Forum: Compiler / Linking / IDE Related
Topic: problem with building wxSVG on windows
Replies: 6
Views: 856

Re: problem with building wxSVG on windows

On the Cygwin command line, what does "wx-config --list" return?

Code: Select all

wx-config --list
Note: I am installing "libwx_gtk3u3.0-devel" which I suspect is needed.
My computer internet is very slow today.

Tim S.
by stahta01
Tue Aug 17, 2021 4:37 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and wxFreeChart with Code::Blocks
Replies: 18
Views: 1864

Re: wxWidgets and wxFreeChart with Code::Blocks

I can't see anything obviously-helpful there, so I tried to download/build wxFreechart. I downloaded the https://github.com/iwbnwif/wxFreeChart clone, but that won't configure against a gtk3 wx. Where did you get yours from? Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PA...
by stahta01
Sun Aug 15, 2021 11:23 pm
Forum: Compiler / Linking / IDE Related
Topic: ERROR : FAILED TO REGISTER WINDOW CLASS.
Replies: 6
Views: 1587

Re: ERROR : FAILED TO REGISTER WINDOW CLASS.

III. Crete EXE : g++ MyApp.cpp -o MyApp.exe -I ".\Include" -I "C:\WxAPI\include" -I "C:\WxAPI\lib\gcc810_x64_dll\mswu" -L "C:\WxAPI\lib\gcc810_x64_dll" -l wxbase31u -l wxmsw31u_core UI.dll You failed to define WXUSINGDLL. -DWXUSINGDLL This may have resulted in static libs being used in step III Me,...