If you compile the release library with `-lib` switch, compiler will generate and store the assert functions in the library file. In other cases, you should link debug builded library for a debug build of your application.