Berkeley DB Reference Guide:
Building Berkeley DB for UNIX systems

PrevRefNext

FreeBSD

  1. I can't compile and run multi-threaded applications.

    Special compile-time flags are required when compiling threaded applications on FreeBSD. If you are compiling a threaded application, you must compile with the _THREAD_SAFE and -pthread flags:

    cc -D_THREAD_SAFE -pthread ...

    The Berkeley DB library will automatically build with the correct options.


PrevRefNext

Copyright Sleepycat Software