Hi Przemek, With the new start-up codes, I tried to make it work with Digital Mars C Mode but so far I achieved no success. I know that Digital Mars is not supported due to math bug, but this exercise may be a fun. Followings are documentation for DMC pragmas which may relate to this subject. Perhaps you could help making DMC C Mode working then.
DMC pragmas: ------------ align code_seg comment cseg dbcs DOSSEG ident includelib init_seg linkage message noreturn once pack startaddress #pragma code_seg ---------------- This pragma indicates that all subsequently generated functions are to be placed in the specified segment. The syntax is: #pragma code_seg segname ------------------------ where segname is the name of the segment in which the functions are to be placed. When the -NS compiler option is used it overrides this pragma for global far functions. You can use -NT, -NS, and #pragma code_seg independently or in any combination. #pragma init_seg ---------------- This pragma works like the Microsoft Visual C++ pragma init_seg to support static constructors/destructors in a manner compatible with Visual C++. The syntax is: #pragma init_seg (compiler|lib|user) #pragma startaddress -------------------- This pragma puts a startaddress record into the object file. The syntax is: #pragma startaddress (name) where name must be a symbol that was defined previously. For example: void startup(); #pragma startaddress (startup) Overloading of name is not supported -- Andi _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
