I get this warning from GCC:
warning: cannot pass objects of non-POD type \'class Something\' through \'...\'; call will abort at runtime
Sounds like there are a bunch of other warnings that you don't want to be turned into errors (using the -Werror flag). In general, its good practice to fix all warnings. Using -Werror forces this.