Skip to content

Undefined symbols for architecture x86_64: error while building on macOS #3

Description

@jinqia0

Hi there,

I encountered the following error while building the project on macOS:

Undefined symbols for architecture x86_64:
"TBinEncoder<BinProbModel_Std>::encodeBin(unsigned int, unsigned int)", referenced from:
C_A_T_C_H_T_E_S_T_2() in test_cabac.cpp.o
"TBinEncoder<BinProbModel_Std>::TBinEncoder()", referenced from:
C_A_T_C_H_T_E_S_T_0() in test_cabac.cpp.o
"TBinEncoder<BinProbModel_Std>::TBinEncoder()", referenced from:
cabacEncoder::cabacEncoder() in test_cabac.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am using macOS 12.6 and Xcode command line tools. It seems like there is an issue with linking the TBinEncoder class. Can you please provide some guidance on how to resolve this issue?

Thank you for your time and help.

Best regards,
jinqiao

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions