Skip to content

Undefined symbols for architecture x86_64 Error #33

@joegasewicz

Description

@joegasewicz

I'm getting the below error when compiling in my project when statically linking with the progressbar lib:

Undefined symbols for architecture x86_64:
  "_tgetent", referenced from:
      _get_screen_width in libprogressbar.a(progressbar.o)
  "_tgetnum", referenced from:
      _get_screen_width in libprogressbar.a(progressbar.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin] Error 1

I'm on a 2019 macbook running Catalina 10.15.6.
I Tried to use the -m64 arg when building my code with the progressbar lib but havent yet tried this flag when building the progressbar project directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions