Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
this suggest your '_ticks' is too large (long long, or something alike) for what your compiler natively supports. The compiler then generate a call to a library in order to implement the '%100', but you have no such library with you ...
If you're sure you want to use 64-bit integers (i.e. you know you haven't made a mistake), link against libgcc.a to allow the use of 64-bit division and modulus. libgcc gives you the alloca function, too.
you could still wonder "why the **** does it fail only when i have _ticks++ ?" . I'm not 100% sure of my response as i don't have the whole code, but i guess this is due to the fact that without _ticks++, the _ticks variable appears as a constant for the compiler, thus it doesn't have to worry about generating code that performs the modulo: it just computes the final value and maybe even replace the "if" block by either ever-executed or never-executed block ...