[Interprocess 1.46.1] IsolationAwareLoadLibraryA not found by linker

I added some shared memory headers from boost::interprocess to my project and I got the linker error: error LNK2028: unresolved token (0A001325) "extern "C" void * __stdcall IsolationAwareLoadLibraryA(char const *)" (?IsolationAwareLoadLibraryA@ @$$J14YGPAXPBD@Z) referenced in function "void * __cdecl boost::interprocess::winapi::load_library(char const *)" (?load_library@winapi@interprocess@boost@@$$FYAPAXPBD@Z) I'm using Visual C++ 2008 Express compiler (from 2010 IDE) and Windows SDK 6.0A. kernel32.lib is added in linker settings. What's the fix?

The issue with CLR was rather easy to fix (my mistake I didn't even check the specific linker error to see that it's CLR related). But the linker still complained about _IsolationAwareLoadLibrary. It turned out the project had a "ISOLATION_AWARE_ENABLED=1" added to preprocessor definitions. Removing it fixed the linker error. The worst part though is that it can take lots of time to figure out situations like this, especially in projects using several C/C++ libraries. I will probably gravitate more towards .NET, whenever possible.
participants (1)
-
Remi