Absent Member.
Absent Member.
1832 views

LINK : fatal error LNK1561: entry point must be defined

Jump to solution

Hi there

I'm sorry when how to solve this issue is known the most, and the work-around might be obvious to just as many 

Even though, I've not been able to figure out what - as I've installed MF visual COBOL and is about to migrate older programs

Doing so, I'm compiling from Visual COBOL command promt (64-bit) using COBOL.exe

It goes well, but next when using the linker (LINK.exe), it comes up with "LINK : fatal error LNK1561: entry point must be defined"

And, the compiler doesn't take any of the compiler options in account - no matter whether I use CBL or PROCESS statement

Any help will be greatly appreciated, kind regards

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert
If you use cbllink.exe rather than executing link.exe directly, that will set the necessary options to allow link.exe to successfully create your executable.

View solution in original post

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert
If you use cbllink.exe rather than executing link.exe directly, that will set the necessary options to allow link.exe to successfully create your executable.

View solution in original post

0 Likes
Absent Member.
Absent Member.
Thank you so much - it really helped med out
However, wonder where could/should I have found the information myself?
Kind regards Finn Lund
0 Likes
Micro Focus Expert
Micro Focus Expert

You can find this information in the docs in the Reference manual in the section for Command Line Reference here

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.