FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Registry Module: Linker Errors?

 
Post new topic   Reply to topic     Forum Index -> tango.scrapple
View previous topic :: View next topic  
Author Message
BenjiSmith



Joined: 05 Jun 2004
Posts: 2
Location: Salt Lake City, Utah

PostPosted: Sat May 10, 2008 6:49 am    Post subject: Registry Module: Linker Errors? Reply with quote

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
View user's profile Send private message Send e-mail
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Sat May 10, 2008 12:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 657
Location: Muskogee, OK, USA

PostPosted: Mon May 12, 2008 1:38 pm    Post subject: Re: Registry Module: Linker Errors? Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> tango.scrapple All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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