Skip to main content

Running Visual COBOL 2.1, Visual Studio 2010 SP1

I have a native COBOL link library project consisting of a single resource file (EMAILRES.RC).  I believe this was taken from a Micro Focus email demo.  When I build the project I get this error:

LINK : fatal error LNK1123:  failure during conversion to COFF: file invalid or corrupt

From what I find on Visual Studio forums this was fixed by Service Pack 1 which is already installed.  Someone recommended reinstalling SP 1.  Any thoughts on this?

I noticed that EMAILRES.RES was put into obj\\x86\\debug so it must be a problem with linking.  By the way, if an INT/GNT project build finds a .RES file in obj\\x86\\debug you get the same "failed to find file" error as you get when there's an .OBJ file in that directory.


#VisualCOBOLautoscalemodescreenresolution

Running Visual COBOL 2.1, Visual Studio 2010 SP1

I have a native COBOL link library project consisting of a single resource file (EMAILRES.RC).  I believe this was taken from a Micro Focus email demo.  When I build the project I get this error:

LINK : fatal error LNK1123:  failure during conversion to COFF: file invalid or corrupt

From what I find on Visual Studio forums this was fixed by Service Pack 1 which is already installed.  Someone recommended reinstalling SP 1.  Any thoughts on this?

I noticed that EMAILRES.RES was put into obj\\x86\\debug so it must be a problem with linking.  By the way, if an INT/GNT project build finds a .RES file in obj\\x86\\debug you get the same "failed to find file" error as you get when there's an .OBJ file in that directory.


#VisualCOBOLautoscalemodescreenresolution

Do you also have Visual Studio 2012 installed on this system?

Microsoft forums seem to indicate that this is a problem that occurs when having both Visual Studio 2010 and Visual Studio 2012 installed on the same system,

Microsoft recommends uninstalling Visual Studio 2012 and then reapplying Visual Studio 2010 SP1.

For the other issue, yes, we are aware that a RES file causes the same problem as an .obj file when using the same project folder for both, .dll and .int/gnt projects.

This has already been fixed by development and will be available in a future update.

Thanks


Running Visual COBOL 2.1, Visual Studio 2010 SP1

I have a native COBOL link library project consisting of a single resource file (EMAILRES.RC).  I believe this was taken from a Micro Focus email demo.  When I build the project I get this error:

LINK : fatal error LNK1123:  failure during conversion to COFF: file invalid or corrupt

From what I find on Visual Studio forums this was fixed by Service Pack 1 which is already installed.  Someone recommended reinstalling SP 1.  Any thoughts on this?

I noticed that EMAILRES.RES was put into obj\\x86\\debug so it must be a problem with linking.  By the way, if an INT/GNT project build finds a .RES file in obj\\x86\\debug you get the same "failed to find file" error as you get when there's an .OBJ file in that directory.


#VisualCOBOLautoscalemodescreenresolution

We had Visual Studio 2012, uninstalled it, then installed Visual Studio 2010, then installed Visual Studio 2010 SP1.  I could always try uninstalling SP1 then reinstalling it.  I could also create a standalone demo of the problem - simple dll project with only EMAIL.RC and see if you have the same problem with the build.

It would start as a Net Express project similar to the one we're importing.  Any suggestions ?


Running Visual COBOL 2.1, Visual Studio 2010 SP1

I have a native COBOL link library project consisting of a single resource file (EMAILRES.RC).  I believe this was taken from a Micro Focus email demo.  When I build the project I get this error:

LINK : fatal error LNK1123:  failure during conversion to COFF: file invalid or corrupt

From what I find on Visual Studio forums this was fixed by Service Pack 1 which is already installed.  Someone recommended reinstalling SP 1.  Any thoughts on this?

I noticed that EMAILRES.RES was put into obj\\x86\\debug so it must be a problem with linking.  By the way, if an INT/GNT project build finds a .RES file in obj\\x86\\debug you get the same "failed to find file" error as you get when there's an .OBJ file in that directory.


#VisualCOBOLautoscalemodescreenresolution

I opened an issue and attached a demo project.


Running Visual COBOL 2.1, Visual Studio 2010 SP1

I have a native COBOL link library project consisting of a single resource file (EMAILRES.RC).  I believe this was taken from a Micro Focus email demo.  When I build the project I get this error:

LINK : fatal error LNK1123:  failure during conversion to COFF: file invalid or corrupt

From what I find on Visual Studio forums this was fixed by Service Pack 1 which is already installed.  Someone recommended reinstalling SP 1.  Any thoughts on this?

I noticed that EMAILRES.RES was put into obj\\x86\\debug so it must be a problem with linking.  By the way, if an INT/GNT project build finds a .RES file in obj\\x86\\debug you get the same "failed to find file" error as you get when there's an .OBJ file in that directory.


#VisualCOBOLautoscalemodescreenresolution

This problem does arise from having both Visual Studio 2010 and Visual Studio 2012 installed on the same system.

Microsoft states that the problem can be resolved by installing Visual Studio 2010 SP1.

Although this will fix the problem when using Microsoft languages it will not solve the problem when using Visual COBOL 2.1.

This is because Visual COBOL provides a preSP1 version of the CVTRES.EXE utility in its bin folder and this is the one that is picked up when compiling resources in a Visual COBOL project.

As a workaround you can copy the SP1 version of the CVTRES.EXE utility from the \\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\bin folder to the \\Program Files (x86)\\Micro Focus\\Visual COBOL\\bin folder.

We will be replacing the default version of this file with a later version in an upcoming product update.

Thanks.