1

I use libcheck in my C code for testing. I installed it using RPM (current version). In the folder /usr/lib64 i can find libcheck.so.0 and libsubunit.so.0. I did encounter however the following problems:

  • The header file was not in /usr/include, i copied it there myself
  • I'm not able to link the library using -lcheck of using - L/user/lib64/libcheck.so.0

i'm not sure if i did something wrong during the installation or why this is going so terribly. Any advice?

HDJEMAI
  • 9,436
  • 46
  • 67
  • 93
Maarten Arits
  • 170
  • 1
  • 9

1 Answers1

2

You need to install the check-devel package in addition to check. It contains both the header file in /usr/include and the .so library file which enables linking.

This is documented in various places, for example in the packaging guidelines.

Florian Weimer
  • 32,022
  • 3
  • 48
  • 92