I have an existing hybrid Fortran / C++ app that calls WinHelp.
I have rewritten the API call from WinHelp to HtmlHelp as we are now using the newer help format.
Unfortunately I cannot get the SCC / SLINK combination to bring in the HtmlHelp library.
In the C++ code I have 'Include 'HtmlHelp.h'' at the top and reworked the API call, this passes through the compiler OK.
The problem comes when I link using SLINK, it is finding and using the htmlhelp.lib file fine, but this has a further dependency on some other API calls with odd prefixes. I've included the command 'lo htmlhelp.lib' to reference the file.
The errors generated are;
WARNING the following symbols are missing:
_imp__GetProcAddress H:\MyApp\htmlhelp.lib (/0 )
(release/init.obj)
_imp__LoadLibraryA H:\MyApp\htmlhelp.lib (/0 )
(release/init.obj)
_imp__RegCloseKey H:\MyApp\htmlhelp.lib (/0 )
(release/init.obj)
_imp__RegQueryValueExA H:\MyApp\htmlhelp.lib (/0 )
(release/init.obj)
_imp__RegOpenKeyExA H:\MyApp\htmlhelp.lib (/0 )
(release/init.obj)
I understand why it needs GetProcAddress etc, I can't figure out why the lib has references to imp_ versions which won't resolve. Using a hex editor I can see the htmlhelp.lib file has '!<arch>' as a header which I thought was a COFF archive, supposedly linkable.
I'm OK with C++ inside Visual Studio but I can't figure out how to get the Salford compiler (SCC) to compile and link this particular library.
What obvious thing am I missing?
Thanks in advance,
Ryan