ubuntu gcc error não consegue encontrar -lut

0

Quando compilar com o gcc com erro:

ERROR /usr/bin/ld: cannot find -lut

Qual é o nome da biblioteca ausente?

    
por sakthi 26.07.2017 / 11:02

1 resposta

1

O vinculador expande l para lib , portanto, o nome da biblioteca ausente será libut (como uma biblioteca compartilhada como libut.so ou uma biblioteca estática libut.a )

Usando apt-file , podemos procurar pelo pacote que o contém:

$ apt-file search /libut\.
uthash-dev: /usr/include/libut.h
uthash-dev: /usr/lib/x86_64-linux-gnu/libut.a

De apt-cache show uthash-dev :

Description-en: hash table and linked list for C structures
 uthash-dev provides a hash table implementation using C preprocessor macros.
 This package also includes:
  * utlist.h provides linked list macros for C structures
  * utarray.h implements dynamic arrays using macros
  * utstring.h implements a basic dynamic string

Como alternativa, é possível que libut seja uma biblioteca particular fornecida pelo software que você está tentando criar.

    
por steeldriver 26.07.2017 / 13:36