You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/22 12:26:14 UTC

[GitHub] [arrow] Eleobert opened a new issue, #14478: r2 undefined reference

Eleobert opened a new issue, #14478:
URL: https://github.com/apache/arrow/issues/14478

   I get undefined references to r2 when I try to compile my project. Here is the cmake file:
   
   ```
   cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
   
   project(proj)
   
   find_package(Arrow REQUIRED)
   
   add_executable(proj src/main.cpp)
   
   target_compile_features(proj PRIVATE cxx_std_20)
   target_link_libraries(proj arrow::arrow)
   ```
   
   And conanfile:
   
   ```
   [requires]
   arrow/8.0.1
   
   [options]
   arrow:parquet=True
   arrow:filesystem_layer=True
   arrow:dataset_modules=True
   
   [generators]
   CMakeToolchain
   CMakeDeps
   ```
   
   Adding `arrow:with_re2=True` does not work, adding re2 as a separate dependency also does not work, neither adding a separate `find_package` and `target_link_library` with re2.
   
   I am trying to compile the example from https://arrow.apache.org/docs/cpp/dataset.html
   
   [link_errors.txt](https://github.com/apache/arrow/files/9844332/link_errors.txt)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] Eleobert commented on issue #14478: r2 undefined reference

Posted by GitBox <gi...@apache.org>.
Eleobert commented on issue #14478:
URL: https://github.com/apache/arrow/issues/14478#issuecomment-1313923917

   The solution is to link re2 as `re2` instead of `re2::re2`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] Eleobert commented on issue #14478: r2 undefined reference

Posted by GitBox <gi...@apache.org>.
Eleobert commented on issue #14478:
URL: https://github.com/apache/arrow/issues/14478#issuecomment-1313925801

   The solution is to link re2 with `target_link_library` as `re2` instead of `re2::re2`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] Eleobert closed issue #14478: r2 undefined reference

Posted by GitBox <gi...@apache.org>.
Eleobert closed issue #14478: r2 undefined reference
URL: https://github.com/apache/arrow/issues/14478


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org