How to link winreg.h to winejoystick.drv during compilation

Marcus Meissner meissner at suse.de
Sat Aug 27 04:22:37 CDT 2016


On Fri, Aug 26, 2016 at 09:29:46PM -0700, DavidL wrote:
> I'm trying to add the ability to read registry keys to winejoystick.drv
> using functions like RegQueryValueExA, RegOpenKeyA, and RegCloseKey.
> However, I am getting linker errors where they are showing up as undefined
> symbols. The changed files are attached. The
> functions get_app_key, get_config_key, and device_disabled_registry are
> copied from various files in dinput and I assumed I needed to import
> advapi32 in the makefile.in since that's what type the aforementioned
> registry functions are, but I'm obviously misunderstanding how this works.
> Any help appreciated!

Yes, importing advapi32 should be correct.

What exact commandlines are generated and what are the errors?

Ciao, Marcus



More information about the wine-devel mailing list