develooper Front page | perl.wxperl.users | Postings from March 2018

[rt.cpan.org #121464] Compile fails with "error: expected identifierbefore string constant" from /CORE/unicode_constants.h

From:
Kent Fredric via RT
Date:
March 30, 2018 02:58
Subject:
[rt.cpan.org #121464] Compile fails with "error: expected identifierbefore string constant" from /CORE/unicode_constants.h
Message ID:
rt-4.0.18-17387-1522378675-1442.121464-15-0@rt.cpan.org
Thu Mar 29 22:57:55 2018: Request 121464 was acted upon.
Transaction: Correspondence added by KENTNL
       Queue: Wx
     Subject: Compile fails with "error: expected identifier before string constant" from /CORE/unicode_constants.h
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: KENTNL@cpan.org
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=121464 >


Some more follow up for people who stumble upon this bug:

This problem as stated only occurs in with wxGTK 2.8, not with wxGTK 3.0

wxGTK 3.0 uses 'wxBOM_UTF8' for the enum instead and thus doesn't collide with
perls UTF8_BOM macro.

Subsequently, a viable fix that might be at your disposal is to make sure your
tooling only builds against wxGTK 3.0, not wxGTK 2.8.

Note that if you go that way, you'll have to do so with Alien-wxWidgets first.

--
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About