mycode.cpp file is compiled in debug mode, but your linking with a release version of the bolt library.
In the same $(BOLT_ROOT)/lib/ (64 if you are building a 64 bit sample) folder you will find the debug library also. please link with that in case you are building the debug version of mycode.cpp
Thanks .debug lib solved the problem
Could you show the code that you used?