Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 426503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:29:09+00:00 2026-05-12T19:29:09+00:00

Switching to GCC for the first time, and I’m getting a bit confused by

  • 0

Switching to GCC for the first time, and I’m getting a bit confused by what the compiler is telling me here. Essentially, it’s behaving like boost::xpressive::wsregex is not defined (I believe).

Here is the relevant code:

#include "criterion.h"
#include <string>
#include <boost/xpressive/xpressive.hpp>

//More lines of code omitted here

class perlRegex : public regexClass
{
private:
    std::wstring regexString;
    boost::xpressive::wsregex regex;   // This is the line complained about
public:
    unsigned __int32 getPriorityClass() const;
    BOOL include(fileData &file) const;
    unsigned int directoryCheck(const std::wstring& /*directory*/) const;
    std::wstring debugTree() const;
    perlRegex(const std::wstring& inRegex);
};

And here is the error:

regex.h:46: error: using-declaration for non-member at class scope
regex.h:46: error: expected `;' before "regex"

What I’m confused about here is that I’m declaring a member, yet it complains that I’m using a member somewhere else.

Have I forgotten to #include something?

Thanks in advance,
Billy3

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:29:09+00:00Added an answer on May 12, 2026 at 7:29 pm

    cygwin and mingw do not support wide characters, so xpressive can’t either. See the following from xpressive_fwd.hpp:

    #if defined(BOOST_NO_CWCHAR) | \
        defined(BOOST_NO_CWCTYPE) | \
        defined(BOOST_NO_STD_WSTRING)
    # ifndef BOOST_XPRESSIVE_NO_WREGEX
    #  define BOOST_XPRESSIVE_NO_WREGEX
    # endif
    #endif
    

    The macros BOOST_NO_CWCHAR, BOOST_NO_CWCTYPE and BOOST_NO_STD_WSTRING are defined automatically by boost’s config.hpp header for your platcorm/compiler/std-library. Sorry.

    In the future, you’ll get better results posting boost questions to the boost users’ list.

    —
    Eric Niebler
    BoostPro Computing
    http://www.boostpro.com

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Several people round here recommended switching to the new WD Velociraptor 10000rpm harddisk. Also
Ever since switching from TABLE-layout to DIV-layout, one common problem remains: PROBLEM : you
I'm switching between different Java SDKs (1.4.2, 1.5.0 and 1.6.0) for various projects. I
We are considering switching from MS Visual Studio 2003 to MS Visual Studio 2005
I am switching to textmate and there are a few things I want to
I am going to switching SSL onto a Rails site of mine pretty soon
We're considering switching our site from Prototype to jQuery. Being all-too-familiar with Prototype, I'm
To make things easier when switching between machines (my workstation at the office and
My question about the reconfiguration delay when switching between Access 2003 and 2007 the
My group is thinking about switching our platform for web UI from ASP.net to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.