Just guessing....
Another possibilty could be, that the compiler you compiled lazarus (and the lcl) with, is not the same as the compiler you used to compile your sample program.
What compiler did you use to compile the LCL (or did you get a precompiled version)?
The compiler used to compile your example, can be set in the environment options.
HTH,
Vincent.