Hello Alexander Baev,
its very likely that you have to include the pli library into your dll build.
Somthing like:
g++ -shared -o hello.dll hello.o mtipli.dll
At least mtipli.dll contains this io_printf function. This dll usually resides in
<modelsim dir>\win32aloem\mtipli.dll
Best regards.