The symbol ___ftoll is defined in the pocrt library.
This library is automatically included when you compile a project.
Where have been compiled the sources? Have you compiled from IDE or from command line?
In the last case you have to add the pocrt.lib in the linker flow (or crt.lib for static linking).