http://qs321.pair.com?node_id=11105020


in reply to Need help debugging Wx on Strawberry Perl 5.26.1

Your wxWidgets library appears to have been built with a different and incompatible C++ compiler from the one Perl is using for building XS modules.

  • Comment on Re: Need help debugging Wx on Strawberry Perl 5.26.1

Replies are listed 'Best First'.
Re^2: Need help debugging Wx on Strawberry Perl 5.26.1
by thechartist (Monk) on Aug 26, 2019 at 03:33 UTC

    What I do not understand is I am building from sources obtained via CPAN. The ABI numbers are so close, but I don't know what to do to get the sources to compile so it can be linked to the Perl interpreter.

    The following link is the exact error, except with different ABI numbers referenced.

      Do I remember correctly that Strawberry Perl bundles a compiler? If so, are you using it? Is the build for Wx compiling wxWidgets from source or getting a prebuilt binary from somewhere? If there is a prebuilt wxWidgets involved, you will probably need to build that library from source using the compiler bundled with Strawberry Perl.

      Have you considered using Tk instead if you cannot get Wx to build?

        Yes, I am using the compiler bundled with Strawberry perl. I'm running into errors simply using Makefile.PL. I tried that to reproduce the errors obtained when running the CPANM client.

        I am installing from CPAN -- so the Wx package provides me with sources only AFAICT. That is why it is so confusing. I'm using GCC 7.1.0.