Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program compiles, but won't link.

Status
Not open for further replies.

cold25

Programmer
Feb 11, 2002
41
US
My program will compile without any errors, but when I try to link it, it gives me the following error message below. I'm just learning Cobol and I don't know how to fix this problem, and "define the entry point." Any ideas?

Thanks,
cold25


Code:
NMAKE : fatal error U1077: 'C:\FSC\PCOBOL32\LINK' : return code '0x68'
Stop.

Microsoft (R) 32-Bit Incremental Linker Version 3.00.5270
Copyright (C) Microsoft Corp 1992-1995. All rights reserved.

/OUT:C:\TOM1\COBOL\WINTERASSIGN4.EXE
C:\tom1\Cobol\winterassign4.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.
 
Are you compiling with the program set as "MAIN"
 
tonyc1, thank you for your help.

cold25
 
no problem,I think this one catches out everyone when they start.
 
when I'm trying to compile in VB 6.0 following error cames up.


Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : warning LNK4044: unrecognized option "EN?"; ignored
LINK : fatal error LNK1561: entry point must be defined


Anybody knows what could be?.
Thanks
 
hey cold25,

iam too facing the same linker problem that u faced. could u please gimme the solution if u have ne.

 
I had the exact same problem. Thanks for the help tonyc1.


For those who still can't figure it out, just put "/ENTRY:YourProgramsID" in the linking options box.


For Example, if your first 2 lines of code are:

IDENTIFICATION DIVISION.
PROGRAM-ID. TEST1.

you enter "/ENTRY:TEST1" in the options box.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top