View previous topic :: View next topic |
Author |
Message |
BenjiSmith
Joined: 05 Jun 2004 Posts: 2 Location: Salt Lake City, Utah
|
Posted: Sat May 10, 2008 6:49 am Post subject: Registry Module: Linker Errors? |
|
|
Has anyone successfully used the scrapple Registry class lately?
It seems to have an error with implicit dchar-to-wchar conversion (that I can fix simply enough myself). but I also get a long list of missing-symbol errors from the linker:
Code: |
Error 42: Symbol Undefined _RegQueryValueExW@24
Error 42: Symbol Undefined _RegCloseKey@4
Error 42: Symbol Undefined _RegFlushKey@4
Error 42: Symbol Undefined _RegOpenKeyExW@20
Error 42: Symbol Undefined _INVALID_HANDLE_VALUE
Error 42: Symbol Undefined _RegCreateKeyExW@36
Error 42: Symbol Undefined _RegDeleteKeyW@8
Error 42: Symbol Undefined _RegDeleteValueW@8
Error 42: Symbol Undefined _RegQueryInfoKeyW@48
Error 42: Symbol Undefined _RegEnumKeyExW@32
Error 42: Symbol Undefined _RegEnumValueW@32
Error 42: Symbol Undefined _HKEY_CLASSES_ROOT
Error 42: Symbol Undefined _HKEY_CURRENT_USER
Error 42: Symbol Undefined _HKEY_LOCAL_MACHINE
Error 42: Symbol Undefined _HKEY_USERS
Error 42: Symbol Undefined _HKEY_PERFORMANCE_DATA
Error 42: Symbol Undefined _HKEY_CURRENT_CONFIG
Error 42: Symbol Undefined _HKEY_DYN_DATA
|
I'm using DMD 1.129 with Tango 0.99, and building with DSSS 0.75. |
|
Back to top |
|
|
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Sat May 10, 2008 12:37 pm Post subject: |
|
|
Hi Benji,
I'm not a windows user, so I'm not sure what is the exact problem here - is a library missing from the link line? If so, how should this be fixed by tango.scrapple? I guess it would make sense to use pragma (lib, ) since that is actually supported by DMD on Windows, but not by GDC (on any platform AFAIK).
FWIW, I've added feature requests for that for both compilers, so perhaps it will happen. It is silly that such an "easy" feature should be kept to build tools (bud and rebuild), which certainly not aren't used by all. |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Mon May 12, 2008 1:38 pm Post subject: Re: Registry Module: Linker Errors? |
|
|
BenjiSmith wrote: | Has anyone successfully used the scrapple Registry class lately?
It seems to have an error with implicit dchar-to-wchar conversion (that I can fix simply enough myself). but I also get a long list of missing-symbol errors from the linker:
Code: |
Error 42: Symbol Undefined _RegQueryValueExW@24
Error 42: Symbol Undefined _RegCloseKey@4
Error 42: Symbol Undefined _RegFlushKey@4
...
|
I'm using DMD 1.129 with Tango 0.99, and building with DSSS 0.75. | I'm not a Tango-user, so I haven't used this tango.scrapple registry class, but I think you need to link to advapi32.lib, such as by adding this to your program:
Code: | pragma(lib, "advapi32.lib"); |
(By the way, here's an example of using Phobos's std.windows.registry.) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|