alugowski / fast_matrix_market

Fast and full-featured Matrix Market I/O library for C++, Python, and R
BSD 2-Clause "Simplified" License
75 stars 7 forks source link

c++/9/thread:126: undefined reference to `pthread_create' #54

Closed chriszhao13 closed 11 months ago

chriszhao13 commented 11 months ago

Hello! Adam. Thanks so much for the _[fast_matrixmarket] project you created. I try to cmake the example. However, there is an issue showing _/9/thread:126: undefined reference to `pthreadcreate'. I fix it by _target_link_libraries(simple1 fast_matrix_market::fast_matrixmarket pthread). Though, I think, the pthread libraries should be linked by the [fast_matrix_market] market itself. I want to verify it.

wishes!

alugowski commented 11 months ago

Interesting.

What version of compiler and OS are you running? What command printed that error?

FMM does not use pthreads, only native C++11 threads. These may be internally implemented using pthreads by some compilers, but do not require additional link arguments.

alugowski commented 11 months ago

@chriszhao13 I tried some additional platforms and compiler versions and was able to reproduce your issue. I believe your issue is fixed, would you mind retesting the latest main on your platform?

alugowski commented 11 months ago

Closed by #56