CA Gen error LNK2019: unresolved external symbol _ZZZZZZZ1 referenced in function _f_22020202
search cancel

CA Gen error LNK2019: unresolved external symbol _ZZZZZZZ1 referenced in function _f_22020202

book

Article ID: 217050

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset

Issue/Introduction

The following error occurs when building a GUI C client load module.

error LNK2019: unresolved external symbol _ZZZZZZZ1 referenced in function _f_22020202

Environment

Release : 8.6

Component : CA Gen Build Tool

Resolution

In the Build Tool, Profile Manager, C, LOC.EXTERNAL_LIB, enter the directory that contains the External Action Block EAB location for the LIB file.

Customers EAB C source code contains deprecated functions so the LOC.EXTERNAL_LIB will need to include special libraries from Microsoft.  There is no way around this except to recode customers C code to not use deprecated functions.  Add 'legacy_stdio_definitions.lib' to LOC.EXTERNAL_LIB within your Gen Build Tool profile manager.  For VS2019, the location is "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\lib\x86\legacy_stdio_definitions.lib".

There may be other entries needed in LOC.EXTERNAL_LIB depending on the EAB C code.