- Comobj,
- Windows,
- ShellAPI,
- ActiveX,
- Forms,
- FileCtrl
all these has one in common - they are platform-specific.
However, did you try compile of command-line application with FPC, using these units?
Main Topics
Browse All TopicsWhen compiling a Delphi written program with FPC, some incompatibilities occur. The question is how to deal with these incompatibilities. Delphi has a large amount of pre-installed units to be used, as does FPC. For example: the unit 'Math' is used by both compilers but there are many other units that are not compatible.
I have two questions concerning the units depicted below:
1. Is there a way to make Delphi units compatible with FPC?
2. If not, are there any equivalent units that do the same and can be used in FPC?
The following units in my Delphi program are not compatible with FPC:
- Comobj,
- Windows,
- ShellAPI,
- ActiveX,
- Forms,
- FileCtrl
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks for your reply,
To Geert: FPC is Free Pascal Compiler
To Cedric:
- Comobj,
- Windows,
- ShellAPI,
- ActiveX,
- Forms,
- FileCtrl
It appears indeed that these units are platform specific: they are accepted when used in Delphi on a windows platform and they are not accepted when used with FPC on our Linux cluster computer.
Does anyone know if there are units for FPC that do exactly the same as the units, depicted above, used in Delphi?
Have you seen the Lazarus Project ?
http://wiki.lazarus.freepa
Are you trying to port a Delphi Windows application to Linux ?
I can't help there yet, just installed Ubuntu this weekend and
now looking to install a Delphi version, so i'm new too on this path.
I looked into converting some of our projects from Delphi 6 to FPC, Dev-Pascal, and Lazarus. If you have forms and visual components, give up all hope. I even tried to convert just a DLL even that was wracked with hundreds and hundreds of syntax errors. It was big complex DLL, but just a DLL nonetheless. No forms or visual components at all. I gave up.
In my opinion, you need to start from scratch in developing in these other pascals. It's less work than "converting."
Thanks for your comments.
I tried to delete some of the units and at a first glance, it appeared that the following units are not needed by the program I use:
- Comobj,
- Windows,
- ShellAPI,
- ActiveX,
- Forms,
So quite alot! Should have known this before posting this question. Nonetheless, FileCtrl is needed:
- FileCtrl
Does there exist any replacement in FPC (or Lazarus) for this unit?
I'm probably looking at the tip of the iceberg concerning all the (syntax)errors FPC will give me but it is to much work though to rewrite my 200 page program...
Business Accounts
Answer for Membership
by: Geert_GruwezPosted on 2008-10-21 at 00:24:11ID: 22765102
this may sound stupid, but what is fpc ?