Microsoft (R) 32-Bit Incremental Linker Version 3.00.5270
Copyright (C) Microsoft Corp 1992-1995. All rights reserved.
/OUT:C:\akhan\EDS\COBOL\Fuj.exe
C:\akhan\EDS\COBOL\Fujitsu.OBJ
C:\FSC\PCOBOL32\PROJECT.RES
C:\FSC\PCOBOL32\F3BICIMP.LIB
C:\FSC\PCOBOL32\LIBC.LIB
C:\FSC\PCOBOL32\KERNEL32.LIB
C:\FSC\PCOBOL32\USER32.LIB
LINK : fatal error LNK1561: entry point must be defined
Linking files ended.
Please close the window.
The manual does not list the U1077 error but does contain the following
explanation of LNK1561:
LNK1561
Explanation:
An attempt was made to create an executable program (EXE) by compiling
the main program without the compiler option MAIN. Operator response:
Specify the compiler option MAIN before compiling the main program.
What this means is that you have not told the compiler whether the
compilation is for a standalone EXE (ie MAIN) or a called program. Stick
@MAIN in as the first line of code, eg:
000100 @OPTIONS MAIN, APOST
000200 IDENTIFICATION DIVISION.
In article <7d7c0707.02122...@posting.google.com>, Sumanta
Khan <Khan_S...@hotmail.com> writes
--
Alistair Maclean
For his mother was Coincidence, and his father was Chaos.
- Stanislaw Lem
> "LINK : fatal error LNK1561: entry point must be defined").
On the Fujitsu web site under 'Support' the first item highlighted in
red is:
"Most common error when first using Fujitsu COBOL:
Link: fatal error: entry point must be defined - set the compiler
options to MAIN before compiling your program."
Alistair Maclean <alis...@ld50macca.demon.co.uk> wrote in article
<Sr53vAAU...@ld50macca.demon.co.uk>...
@OPTIONS MAIN(WINMAIN) or @OPTIONS MAIN(MAIN)
that's a way of setting the program as a main program.
From the Fujitsu manuals:
Specify MAIN to use a COBOL source program as a main program;
specify NOMAIN to use a COBOL source program as a subprogram.
MAIN(WINMAIN):
Specify this when you use a console window created by COBOL
for the input/output target of an ACCEPT statement or DISPLAY
statement, and when you use a message box for the output target
of an error message at execution time.
MAIN(MAIN):
Specify this when you use the system console (command prompt
window) for the input/output target of ACCEPT statement,
DISPLAY statement and error message at execution time.
If only MAIN is specified, it is handled as MAIN(WINMAIN).
"Richard" <rip...@Azonic.co.nz> wrote in message
news:217e491a.02122...@posting.google.com...
>> I recently downloaded COBOL85 V30L10,
> Add a line before the first one:
>
> @OPTIONS MAIN(WINMAIN) or @OPTIONS MAIN(MAIN)
Note that for Version 3 the parameter is not valid, the only way this
should be specified is as MAIN and not as MAIN(something) which is
only appropriate to later versions.