Skip to main content

error LNK2001 - 64 bit

  • Oct 14, 2014 8:41 PM UTC
  • 4 replies
  • 19 views

Dominique Sacre
Forum|alt.badge.img+2

We're compiling all our COBOL as 64 bit for the next release of our system, and one of the programs won't link.  It gets the error message 'cbllds00003DFC.obj : error LNK2001: unresolved external symbol _mFxxxx' (where xxxx is a 4 digit hex number).  It gets this message many, many times.  This program has calls to the 'CBL_' routines as well as access to the windows registry.  I probably missed something in the documentation about 64 bit 'CBL_', so if anyone has some wisdom on this, I would greatly appreciate it.  Thanks in advance for your help!

4 replies

Fano R.
Forum|alt.badge.img+2
  • Rocketeer
  • Oct 14, 2014 9:05 PM UTC

We're compiling all our COBOL as 64 bit for the next release of our system, and one of the programs won't link.  It gets the error message 'cbllds00003DFC.obj : error LNK2001: unresolved external symbol _mFxxxx' (where xxxx is a 4 digit hex number).  It gets this message many, many times.  This program has calls to the 'CBL_' routines as well as access to the windows registry.  I probably missed something in the documentation about 64 bit 'CBL_', so if anyone has some wisdom on this, I would greatly appreciate it.  Thanks in advance for your help!

Hi Walter,

Are you compiling and linking from a Net Express project or command line? If it is from a command line, are you using the Net Express 64-Bit Command Prompt?

Regards,


Dominique Sacre
Forum|alt.badge.img+2

We're compiling all our COBOL as 64 bit for the next release of our system, and one of the programs won't link.  It gets the error message 'cbllds00003DFC.obj : error LNK2001: unresolved external symbol _mFxxxx' (where xxxx is a 4 digit hex number).  It gets this message many, many times.  This program has calls to the 'CBL_' routines as well as access to the windows registry.  I probably missed something in the documentation about 64 bit 'CBL_', so if anyone has some wisdom on this, I would greatly appreciate it.  Thanks in advance for your help!

I am compiling from a NetExpress project with the 64 bit option set in project/properties


Fano R.
Forum|alt.badge.img+2
  • Rocketeer
  • Oct 14, 2014 9:25 PM UTC

We're compiling all our COBOL as 64 bit for the next release of our system, and one of the programs won't link.  It gets the error message 'cbllds00003DFC.obj : error LNK2001: unresolved external symbol _mFxxxx' (where xxxx is a 4 digit hex number).  It gets this message many, many times.  This program has calls to the 'CBL_' routines as well as access to the windows registry.  I probably missed something in the documentation about 64 bit 'CBL_', so if anyone has some wisdom on this, I would greatly appreciate it.  Thanks in advance for your help!

Can you tell me which CBL_ routines you are using for instance and do you link with the static or shared runtime library system?

Regards,


Dominique Sacre
Forum|alt.badge.img+2

We're compiling all our COBOL as 64 bit for the next release of our system, and one of the programs won't link.  It gets the error message 'cbllds00003DFC.obj : error LNK2001: unresolved external symbol _mFxxxx' (where xxxx is a 4 digit hex number).  It gets this message many, many times.  This program has calls to the 'CBL_' routines as well as access to the windows registry.  I probably missed something in the documentation about 64 bit 'CBL_', so if anyone has some wisdom on this, I would greatly appreciate it.  Thanks in advance for your help!

Thanks Fano, your question reminded me to NOT link as static.  When I link it as shared, it links OK.  Thanks again