libcpr / cpr

C++ Requests: Curl for People, a spiritual port of Python Requests.
https://docs.libcpr.org/
Other
6.59k stars 937 forks source link

dyld[44965]: symbol not found in flat namespace '__ZN3cpr10ParametersC1ERKSt16initializer_listINS_9ParameterEE' #856

Closed HenryChen-CH closed 1 year ago

HenryChen-CH commented 1 year ago

Description

I have a code that use cpr library. I build it on MacBook with M1 chip. the build is successful but it throws run time error. this error code __ZN3cpr10ParametersC1ERKSt16initializer_listINS_9ParameterEE has the key word: cpr parameters, initializer. it seems to indicate the issue is with cpr parameters initializer. however I don't know what's wrong exactly.

Example/How to Reproduce

  1. Create a cpr get request with cpr parameter
  2. Perform the request
  3. build
  4. run

Possible Fix

No response

Where did you get it from?

GitHub (branch e.g. master)

Additional Context/Your Environment

COM8 commented 1 year ago

After demangling it, it results in: _cpr::Parameters::Parameters(std::initializer_list<cpr::Parameter> const&)

Could it be that you own a M1 Mac?

COM8 commented 1 year ago

Could you please provide a complete log of the crash?

COM8 commented 1 year ago

Closing this one for inactivity.