pombreda / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

library broken under xcode 5.0 #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and compile latest RE2 code.
2. Use simple example with 'RE2::FullMatch' method.
3. Pass in string variable for text and pattern.
4. Or, use quoted strings for text and pattern in place of variable names.

What is the expected output? What do you see instead?
Using string variables, build errors. See linker error below.
Using quoted strings. This way the program builds but fails on execution. See 
second error, EXC_BAD_ACCESS, below.

What version of the product are you using? On what operating system?
- re2-20130802
- OS X v10.8.5
- g++ --version
   Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-   dir=/usr/include/c++/4.2.1
   Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
   Target: x86_64-apple-darwin12.5.0
   Thread model: posix

Please provide any additional information below.
Undefined symbols for architecture x86_64:
  "re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

EXC_BAD_ACCESS
bool RE2::Arg::parse_string(const char* str, int n, void* dest) {
  if (dest == NULL) return true;
  reinterpret_cast<string*>(dest)->assign(str, n);
  return true;
}

Original issue reported on code.google.com by androidb...@gmail.com on 15 Oct 2013 at 5:44

GoogleCodeExporter commented 9 years ago
Solution for this problem is detailed in issue 92.

Original comment by androidb...@gmail.com on 10 Jan 2014 at 12:10

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 975db9909185.

Original comment by rsc@swtch.com on 10 Jan 2014 at 1:49