Everything should be build in the build/* directory.
Generate take a long, not an int.
Add a prototype of the generate function.