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

DavidL david.dljunk at gmail.com
Sat Aug 27 08:09:33 CDT 2016


Huh ... this is embarrassing, although pleasantly so: it just compiled and
linked - I don't know why, I don't think I made any changes - but it works
now. I will investigate a little bit further to see if the why is
interesting and report what I might've done if so ... probably something
stupid :)



On Sat, Aug 27, 2016 at 2:22 AM, Marcus Meissner <meissner at suse.de> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20160827/ff2f8b62/attachment.html>


More information about the wine-devel mailing list