SQLite Forum

Error while linking sqlite shared library with the Application
Login
Searching the Internet for "icc \_\_sync\_synchronize" gives a [few](https://github.com/mfs409/rstm/blob/master/include/common/icc-sync.hpp) [results](https://origin-software.intel.com/en-us/forums/intel-c-stm-compiler-prototype-edition/topic/292064). In particular, ICC 10 that you seem to be using doesn't have the `__sync_synchronize()` intrinsic (it was introduced in ICC 11), while SQLite source code tries to use it, seeing that the `__GNUC__` preprocessor symbol is defined.

As a workaround, you can define the `SQLITE_MEMORY_BARRIER` preprocessor symbol to `asm volatile("mfence":::"memory")`. SQLite will see the symbol and use it instead of assuming that the compiler has `__sync_synchronize()`.