You using Free Pascal? Add the command-line switch -Mdelphi when you compile your program. i.e. fpc -Mdelphi blah.pp