Skip to main content

cbllink options

  • June 25, 2012
  • 4 replies
  • 0 views

Hi all

Currently i compile my code using below option "CBLLINK SOURCE.CBL -D -RS " from Micro Focus Command Prompt directives are picked from cobol.dir placed in folder (Directory ) to get dll's.

All goes well till here.

I am facing an issue

Runtime Error 119 on extsm. This occus on the second dll in an application that attempts to perform a sort.

When i read documentation it says to avoid this do not to link system programs when building DLL's.

i am unable to find an apt option to compile without linking system programs using cblink

Thanks

Cheeta


#extsm

4 replies

Gael Wilson
Forum|alt.badge.img
  • Rocketeer
  • 167 replies
  • June 27, 2012

Hi all

Currently i compile my code using below option "CBLLINK SOURCE.CBL -D -RS " from Micro Focus Command Prompt directives are picked from cobol.dir placed in folder (Directory ) to get dll's.

All goes well till here.

I am facing an issue

Runtime Error 119 on extsm. This occus on the second dll in an application that attempts to perform a sort.

When i read documentation it says to avoid this do not to link system programs when building DLL's.

i am unable to find an apt option to compile without linking system programs using cblink

Thanks

Cheeta


#extsm

Hi cheeta,

The -S option to CBLLINK will link without including system programs.

Hope that helps,

Gael


  • Author
  • Rocketeer
  • 19312 replies
  • June 29, 2012

Hi all

Currently i compile my code using below option "CBLLINK SOURCE.CBL -D -RS " from Micro Focus Command Prompt directives are picked from cobol.dir placed in folder (Directory ) to get dll's.

All goes well till here.

I am facing an issue

Runtime Error 119 on extsm. This occus on the second dll in an application that attempts to perform a sort.

When i read documentation it says to avoid this do not to link system programs when building DLL's.

i am unable to find an apt option to compile without linking system programs using cblink

Thanks

Cheeta


#extsm

Hi Gael,

i get Below message when i do CBLLINK ABC.CBL -D -S

 Creating library abc.lib and object abc.exp

abc.obj : error LNK2019: unresolved external symbol OUTDDFH referenced in funct

ion abc_0x0

abc.dll : fatal error LNK1120: 1 unresolved externals


Gael Wilson
Forum|alt.badge.img
  • Rocketeer
  • 167 replies
  • July 2, 2012

Hi all

Currently i compile my code using below option "CBLLINK SOURCE.CBL -D -RS " from Micro Focus Command Prompt directives are picked from cobol.dir placed in folder (Directory ) to get dll's.

All goes well till here.

I am facing an issue

Runtime Error 119 on extsm. This occus on the second dll in an application that attempts to perform a sort.

When i read documentation it says to avoid this do not to link system programs when building DLL's.

i am unable to find an apt option to compile without linking system programs using cblink

Thanks

Cheeta


#extsm

Cheeta,

Part of the reason why system programs get linked in automatically is because there are certain situations where this sort of problem can occur. Did you try adding outddfh.obj to the CBLLINK command line ? If you did that and still have symbol redefinition errors I would suggest that you follow up on the problem with Customer Care rather than this forum.

Gael.


  • Author
  • Rocketeer
  • 19312 replies
  • July 3, 2012

Hi all

Currently i compile my code using below option "CBLLINK SOURCE.CBL -D -RS " from Micro Focus Command Prompt directives are picked from cobol.dir placed in folder (Directory ) to get dll's.

All goes well till here.

I am facing an issue

Runtime Error 119 on extsm. This occus on the second dll in an application that attempts to perform a sort.

When i read documentation it says to avoid this do not to link system programs when building DLL's.

i am unable to find an apt option to compile without linking system programs using cblink

Thanks

Cheeta


#extsm

Thanks Gael . will try and will update you !!