Highlighted
Absent Member.
Absent Member.
751 views

Single File Compile

Jump to solution

Hi , 

What are the compiler directives to create a .dll for the single program ? ( My code is a managed code , also unlike Native code we donot have option to create multiple executable in Managed code )

I could set gnt and int from Tools-->Opions-->Micro Focus-->Directives-->Single file compile.

Also How do i set this from Visual Cobol Command prompt if i have to do a Bulk Compilation of programs.

Regards,

Zoeb

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Single File Compile

Jump to solution

Actually we added the Procedural Multi-Output project template to the managed code templates in 2.3 update 1, I believe, so you can have a managed code project where each individual program will generate its own .EXE or .DLL assembly.

From the command line you could either build one of these projects using msbuild or you can run a separate compile for each.

cobol myprog.cbl -ilgen(sub)

The above will generate the myprog.dll assembly

View solution in original post

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Single File Compile

Jump to solution

Actually we added the Procedural Multi-Output project template to the managed code templates in 2.3 update 1, I believe, so you can have a managed code project where each individual program will generate its own .EXE or .DLL assembly.

From the command line you could either build one of these projects using msbuild or you can run a separate compile for each.

cobol myprog.cbl -ilgen(sub)

The above will generate the myprog.dll assembly

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.