Marcelo Almeida wrote: >Mesmo com a nova versão do delphi, deu uses no sysutils, já era a >compatibilidade. >O sysutils faz referencia ao kernel32.dll que só tem no windows. >Pode até funcionar no mono pra windows, mas linux não. > >
Faltou exemplo: fonte 1: ----------- program Project2; {$APPTYPE CONSOLE} uses Sysutils; begin writeln('Hello World!'); end. ------------ [EMAIL PROTECTED]:~> mono Project2.exe Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Project2.Units.Project2 ---> System.TypeInitializationException: An exception was thrown by the type initializer for Borland.Vcl.Units.SysUtils ---> System.DllNotFoundException: kernel32.dll in <0x00053> (wrapper managed-to-native) Borland.Vcl.Units.Windows:GetVersionEx (Borland.Vcl._OSVERSIONINFO&) in <0x00062> Borland.Vcl.Units.SysUtils:InitPlatformId () in <0x0004c> Borland.Vcl.Units.SysUtils:Borland.Vcl.SysUtils () in <0x0064e> Borland.Vcl.Units.SysUtils:.cctor () --- End of inner exception stack trace --- in (unmanaged) (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor (intptr) in <0x00004> (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor (intptr) in <0x0001c> System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor (System.RuntimeTypeHandle) in <0x00026> Project2.Units.Project2:.cctor () --- End of inner exception stack trace --- fonte 2: ----------- program Project2; {$APPTYPE CONSOLE} begin writeln('Hello World!'); end. ------------ [EMAIL PROTECTED]:~> mono Project2.exe Hello World! [EMAIL PROTECTED]:~> Resumindo: se for escrever algo em delphi pra rodar no mono do linux, vai ter que reescrever quase todas as bibliotecas. Pegar os fontes que vem no delphi e remover o que acessa a API do windows deve funcionar, mas vai perder muitas funcionalidades. _______________________________________________________ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/ -- <<<<< FAVOR REMOVER ESTA PARTE AO RESPONDER ESTA MENSAGEM >>>>> Para ver as mensagens antigas, acesse: http://br.groups.yahoo.com/group/delphi-br/messages Para falar com o moderador, envie um e-mail para: [EMAIL PROTECTED] ou [EMAIL PROTECTED] Links do Yahoo! Grupos <*> Para visitar o site do seu grupo na web, acesse: http://br.groups.yahoo.com/group/delphi-br/ <*> Para sair deste grupo, envie um e-mail para: [EMAIL PROTECTED] <*> O uso que você faz do Yahoo! Grupos está sujeito aos: http://br.yahoo.com/info/utos.html