Note that there are some explanatory texts on larger screens.

plurals
  1. POG++ not finding symbols from regex system header
    primarykey
    data
    text
    <p>I am trying to use the GNU C library regex functionality in my C++ project, particularly I'm trying to use the regex_t regcomp, regexec, regfree functions. Upon compilation I get errors stating that these symbols are undefined:</p> <pre><code>me&gt; g++ -I/me/myheaders/ -c RootGenerator.cpp -o RootGenerator.o -std=gnu++0x -Wall RootGenerator.cpp: In function ‘std::string findFirstFileInCurrentDirectory(std::string)’: RootGenerator.cpp:1072: error: ‘regex_t’ was not declared in this scope RootGenerator.cpp:1072: error: expected ‘;’ before ‘re’ RootGenerator.cpp:1073: error: ‘re’ was not declared in this scope RootGenerator.cpp:1073: error: ‘REG_EXTENDED’ was not declared in this scope RootGenerator.cpp:1073: error: ‘REG_NOSUB’ was not declared in this scope RootGenerator.cpp:1073: error: ‘regcomp’ was not declared in this scope RootGenerator.cpp:1074: error: expected ‘;’ before ‘int’ RootGenerator.cpp:1084: error: ‘status’ was not declared in this scope RootGenerator.cpp:1084: error: ‘regexec’ was not declared in this scope RootGenerator.cpp:1092: error: ‘REG_NOMATCH’ was not declared in this scope RootGenerator.cpp:1108: error: ‘regfree’ was not declared in this scope </code></pre> <p>I realize that the regex header is a TR1 implementation and is therefore experimental for my version of GCC. I added the <code>-std=gnu++0x</code> compiler option according to the compiler warning recieved when first trying to compile but this doesn't seem to fix the issue. Is this an issue of the system not recognizing and adding paths to "experimental" headers? Are there additional include paths or compiler options that I need to specify?</p> <p>As an additional note, I noticed in Eclipse/CDT that under the "includes" tab in the Project Explorer view, it shows a list of the system header paths. It lists many header files under the /user/include/c++/4.4.4 path tab, but It doesn't list the regex header. I think this is also reaffirming that there is a setting issue.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload