Skip to content

Ubuntu Link Error #1

@HUGHNew

Description

@HUGHNew
/usr/bin/ld
...
`pthread_create` : undefined reference

While compiling it, a link error occurred which shown that it should link the pthread library

After appending " -lpthread" in Line 8 of Makefile , it worked.

Env:

  • WSL-Ubuntu 20.04LTS
  • gcc 9.3.0

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