Hi Mohammad,
[quote user="Mohammad Aryafar"]when I compile it, it returns this error message:[/quote]
You should read error message with attention. The problem is not in compilation (which is a process where object files are created from source code), but in linking (when object files are "merged" with libraries.
And the error message tells clearly where the problem is: Function (symbol) mdlRaster_initialize used in initapp.mo object file cannot be found in any defined library.
[quote user="Mohammad Aryafar"]Can you tell me how I can resolve the issue?[/quote]
For every used API function you have to ensure a proper library is linked. I have no MicroStation V8 2004 Edition installed, but I guess mdlRaster_initialize function is defined in rasterlib.dlo. It means you have to add this library into appObjects definition.
With regards,
Jan