wregex support missing? #23

Closed
opened 2026-01-29 22:23:31 +00:00 by claunia · 2 comments
Owner

Originally created by @martinrotter on GitHub (Feb 4, 2020).

Originally assigned to: @dmik on GitHub.

I get errors: "wregex is not a member of std", "regexp not declared", etc.

I compile with latest gcc 9.2.xx from experimental repository. I have C++17 standard enabled by appropriate switch.

Specifically compilling https://github.com/martinrotter/textosaurus with these steps:

cd C:\usr\bin
cp lupdate-qt5.exe lupdate.exe
cp lrelease-qt5.exe lrelease.exe
cd C:
git clone https://github.com/martinrotter/textosaurus
git submodule update --init --remote
mkdir build
cd build
qmake-qt5 ../ -r
make
Originally created by @martinrotter on GitHub (Feb 4, 2020). Originally assigned to: @dmik on GitHub. I get errors: "wregex is not a member of std", "regexp not declared", etc. I compile with latest gcc 9.2.xx from experimental repository. I have C++17 standard enabled by appropriate switch. Specifically compilling https://github.com/martinrotter/textosaurus with these steps: ```bash cd C:\usr\bin cp lupdate-qt5.exe lupdate.exe cp lrelease-qt5.exe lrelease.exe cd C: git clone https://github.com/martinrotter/textosaurus git submodule update --init --remote mkdir build cd build qmake-qt5 ../ -r make ```
Author
Owner

@dmik commented on GitHub (Feb 5, 2020):

Thanks for the report! You should have std::regex in our builds. I've just checked an example from https://en.cppreference.com/w/cpp/regex/regex_match and it gives exactly the same output under OS/2.

As of wregex, it's perhaps disabled at GCC configure time because of #16. Once #16 is resolved, we will get this bit too, I suppose. You have to wait for now or use the non-wide char version.

@dmik commented on GitHub (Feb 5, 2020): Thanks for the report! You should have `std::regex` in our builds. I've just checked an example from https://en.cppreference.com/w/cpp/regex/regex_match and it gives exactly the same output under OS/2. As of `wregex`, it's perhaps disabled at GCC configure time because of #16. Once #16 is resolved, we will get this bit too, I suppose. You have to wait for now or use the non-wide char version.
Author
Owner

@dmik commented on GitHub (Mar 19, 2020):

With the latest fixes to #16 and a full GCC rebuild, this works too, out of the box — I've modified the test case from https://en.cppreference.com/w/cpp/regex/regex_match to use wregex instead of regex and it works too. A new set of GCC RPMs will appear shortly.

@dmik commented on GitHub (Mar 19, 2020): With the latest fixes to #16 and a full GCC rebuild, this works too, out of the box — I've modified the test case from `https://en.cppreference.com/w/cpp/regex/regex_match` to use `wregex` instead of `regex` and it works too. A new set of GCC RPMs will appear shortly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bitwiseworks/gcc-os2#23