Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-04

Power PC Linux Optimize Port

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Senthil Kumar

Greetings,

I am attempting to do the port (Optimize).

A simple question. I am sure I will have a lot more down the road.

To which release should I target it to ? The website says "Version 1.0.10 is the latest stable version the Free Pascal."

Should I target that ? I don't want to use the latest CVS snap shot as that would make it a moving target (I don't know the code at all at this point)

cheers,
Senthil

__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/

Reply by email

Florian Klaempfl
to Senthil Kumar
Senthil Kumar wrote 10 lines
Greetings, I am attempting to do the port (Optimize). A simple question. I am sure I will have a lot more down the road. To which release should I target it to ? The website says "Version 1.0.10 is the latest stable version the Free Pascal." Should I target that ?

1.0.x has no PowerPC support. Stable means no new features so it would be useless to work with that one anyways.

I don't want to use the latest CVS snap shot as that would make it a moving target (I don't know the code at all at this point)

Use the 1.9.8 sources then.

Show quoted text 14 lines
cheers, Senthil __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Jonas Maebe
to Senthil Kumar: I am attempting to do the port (Optimize). A simple question. I am sure I will have a lot…
Senthil Kumar wrote 9 lines
A simple question. I am sure I will have a lot more down the road. To which release should I target it to ? The website says "Version 1.0.10 is the latest stable version the Free Pascal." Should I target that ? I don't want to use the latest CVS snap shot as that would make it a moving target (I don't know the code at all at this point)

No, you should definitely port version 1.9.8, or preferably the current CVS version. Version 1.0.10 does not contain any PowerPC support at all. Since we are very close to releasing version 2.0, CVS is quite stable at the moment, so I would recommend you to use that one (it contains some extra fixes compared to 1.9.8, both on the PowerPC and 64 bit fronts).

Good luck with the port!

Jonas

Reply by email

Matthias Hryniszak
to Jonas Maebe

Hi,

I've got a question about COM programming in FPC. In the docs (http://www.freepascal.org/docs-html/ref/refsu20.html) I've found:

Variants and interfaces
Remark: Dispatch interface support for variants is currently broken in the compiler.

Is it still true? Why when I try to compile this simple application

program Test;
{$MODE DELPHI}
uses
  ActiveX, ComObj;
var
  COM: Variant;
begin
  CoInitialize(nil);
  COM := CreateOleObject('Shell.Application');
  COM.MinimizeAll;
  CoUninitialize;
end.

The compiler tells me:

Free Pascal Compiler version 1.9.9 [2005/04/15] for i386 Copyright (c) 1993-2005 by Florian Klaempfl
test.pp(14,7) Error: Illegal expression
test.pp(14,7) Fatal: Syntax error, ";" expected but "identifier MINIMIZEALL" found
Error: X:\FPC\Bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specifiy a source file to be compiled)

What's going on? Anybody can help? do I have to compile the compiler with some extra settings to make Variants work as late-binding variables? I've got a little dead-line here and I have to make a decition if I take the delphi compiler or fpc and if I don't get this to work I'll have to take delphi and that's something I really don't want. Huston, please advice!

Regards,

Matthias ()

Reply by email

Florian Klaempfl
to Matthias Hryniszak
Matthias Hryniszak wrote 10 lines
Hi, I've got a question about COM programming in FPC. In the docs (http://www.freepascal.org/docs-html/ref/refsu20.html) I've found: Variants and interfaces Remark: Dispatch interface support for variants is currently broken in the compiler. Is it still true?

Yes.

Show quoted text 36 lines
Why when I try to compile this simple application program Test; {$MODE DELPHI} uses ActiveX, ComObj; var COM: Variant; begin CoInitialize(nil); COM := CreateOleObject('Shell.Application'); COM.MinimizeAll; CoUninitialize; end. The compiler tells me: Free Pascal Compiler version 1.9.9 [2005/04/15] for i386 Copyright (c) 1993-2005 by Florian Klaempfl test.pp(14,7) Error: Illegal expression test.pp(14,7) Fatal: Syntax error, ";" expected but "identifier MINIMIZEALL" found Error: X:\FPC\Bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specifiy a source file to be compiled) What's going on? Anybody can help? do I have to compile the compiler with some extra settings to make Variants work as late-binding variables? I've got a little dead-line here and I have to make a decition if I take the delphi compiler or fpc and if I don't get this to work I'll have to take delphi and that's something I really don't want. Huston, please advice!

Don't expect that dispatch interface in fpc work within the next week except if somebody pops up suddenly with a patch ;)

Show quoted text 13 lines
Regards, Matthias () _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Matthias Hryniszak
to Florian Klaempfl

That's to bad. This means, that my previous question about interfaces.is to be butted in the same drawer..

Earlier message 82 lines
----- Original Message ----- From: "Florian Klaempfl" To: "FPC developers' list" Sent: Friday, April 15, 2005 9:30 PM Subject: Re: [fpc-devel] COM issues > Matthias Hryniszak wrote: > >> Hi, >> >> I've got a question about COM programming in FPC. In the docs >> (http://www.freepascal.org/docs-html/ref/refsu20.html) I've found: >> >> Variants and interfaces >> Remark: Dispatch interface support for variants is currently broken in >> the compiler. >> >> Is it still true? > > Yes. > >> Why when I try to compile this simple application >> >> program Test; >> >> {$MODE DELPHI} >> >> uses >> ActiveX, ComObj; >> >> var >> COM: Variant; >> >> begin >> CoInitialize(nil); >> COM := CreateOleObject('Shell.Application'); >> COM.MinimizeAll; >> CoUninitialize; >> end. >> >> >> The compiler tells me: >> >> Free Pascal Compiler version 1.9.9 [2005/04/15] for i386 >> Copyright (c) 1993-2005 by Florian Klaempfl >> test.pp(14,7) Error: Illegal expression >> test.pp(14,7) Fatal: Syntax error, ";" expected but "identifier >> MINIMIZEALL" found >> Error: X:\FPC\Bin\i386-win32\ppc386.exe returned an error exitcode >> (normal if you did not specifiy a source file to be compiled) >> >> What's going on? Anybody can help? do I have to compile the compiler >> with some extra settings to make Variants work as late-binding >> variables? I've got a little dead-line here and I have to make a >> decition if I take the delphi compiler or fpc and if I don't get this to >> work I'll have to take delphi and that's something I really don't want. >> Huston, please advice! > > Don't expect that dispatch interface in fpc work within the next week > except if somebody pops up suddenly with a patch ;) > > >> >> Regards, >> >> Matthias () >> >> >> >> >> >> >> _______________________________________________ >> fpc-devel maillist - >> http://lists.freepascal.org/mailman/listinfo/fpc-devel > > > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel >

Reply by email