For Programmers: Free Programming Magazines  


Home > Archive > Cobol > December 2006 > Micro Focus COBOL Visual C++ linking









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Micro Focus COBOL Visual C++ linking
jnhemley@earthlink.net

2006-12-05, 6:55 pm

We're trying to link a COBOL program with a C++ object and a winsock
library. It doesn't work but the error message doesn't make it clear
why not. This is what we did:

COB -vx:Lw -oTESTRUN portstat.obj ws2_32.lib

This is what we got:

Micro Focus COB for DOS, OS/2 and Windows Version 3.2.46
Copyright (C) 1993-1994 Micro Focus Ltd.

Scanning: portstat.obj
Executing:LINK.EXE @cbllds.lnk,TESTRUN.EXE,,ws2_32.lib lcoboldw
lcobol cobw ,TE
STRUN.DEF;

Microsoft (R) Segmented-Executable Linker Version 5.15
Copyright (C) Microsoft Corp 1984-1991. All rights reserved.

Object Modules [.OBJ]: portstat.obj+
Object Modules [.OBJ]: cblwina.obj+
Object Modules [.OBJ]: /noe/nod/A:16
portstat.obj : fatal error L1101: invalid object module
Link finished with errors

Any suggestions

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com