Author: Embarcadero USA
Question and Answer Database FAQ4334C.txt :How do I produce a .hpp file from a .pas file in C++Builder Category :Command Line Tools Platform :Win95/NT Product :C++Builder1.0, C++Builder3.x, C++Builder4.x, Question: How do I produce a .hpp file from a .pas file in C++Builder? Answer: The Delphi compiler incorporates this functionality in the following switches: -j generate a C obj -jp generate a C++ obj -jphn generate a C++ header file Example: dcc32 -jphn myfile.pas This will generate myfile.hpp 2/9/1999 10:28:05 AM
Article originally contributed by
Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition
Hi,Your answer isn’t true for 11.3 Alex community edition because C:\Users\panshin.i.g>dcc32 -jphn
This version of the product does not support command line compiling.
So help me if it’s possible through email [email protected]
This article is 5 years old. The early CE versions did have a command line compiler but this was removed due to license considerations.
As a result, the example in this article will only work with Pro, Enterprise, and Architect versions of RAD Studio.
Note that 12.1 has an option for CLANG compiler use which has different capabilities – you might like to download a trial and see if it does what you are looking for.