Post Reply

[Q] Issues compiling WP8 Native Access project

22nd April 2014, 04:21 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Apr 2014
Hi

I'm trying to compile WP8 Native Access project. FileSystem compiles without worries, but Registry is giving me a hard time.

I've used the winreg.h file from windows 8 sdk and extracted the libs from KERNELBASE and ADVAPI32LEGACY. However the linker still complains about it. Any ideas on why?

These are the errors:
Error 1 error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "public: static bool __cdecl Registry::NativeRegistry::CanWrite(enum Registry::RegistryHive,class Platform::String ^,class Platform::String ^)" (?CanWrite@NativeRegistry@Registry@@SA_NW4Registry Hive@2@P$AAVString@Platform@@1@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 2 error LNK2019: unresolved external symbol __imp__RegCreateKeyExW@36 referenced in function "public: static bool __cdecl Registry::NativeRegistry::CreateKey(enum Registry::RegistryHive,class Platform::String ^)" (?CreateKey@NativeRegistry@Registry@@SA_NW4Registr yHive@2@P$AAVString@Platform@@@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 3 error LNK2019: unresolved external symbol __imp__RegDeleteKeyW@8 referenced in function "public: static bool __cdecl Registry::NativeRegistry:eleteKey(enum Registry::RegistryHive,class Platform::String ^,bool)" (?DeleteKey@NativeRegistry@Registry@@SA_NW4Registr yHive@2@P$AAVString@Platform@@_N@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 10 error LNK2019: unresolved external symbol __imp__RegDeleteTreeW@8 referenced in function "public: static bool __cdecl Registry::NativeRegistry:eleteKey(enum Registry::RegistryHive,class Platform::String ^,bool)" (?DeleteKey@NativeRegistry@Registry@@SA_NW4Registr yHive@2@P$AAVString@Platform@@_N@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 4 error LNK2019: unresolved external symbol __imp__RegDeleteValueW@8 referenced in function "public: static bool __cdecl Registry::NativeRegistry:eleteValue(enum Registry::RegistryHive,class Platform::String ^,class Platform::String ^)" (?DeleteValue@NativeRegistry@Registry@@SA_NW4Regis tryHive@2@P$AAVString@Platform@@1@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 5 error LNK2019: unresolved external symbol __imp__RegEnumKeyExW@32 referenced in function "bool __cdecl Registry::EnumSubKeys(struct HKEY__ *,wchar_t * *,unsigned long,unsigned long)" (?EnumSubKeys@Registry@@YA_NPAUHKEY__@@PAPA_WKK@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 6 error LNK2019: unresolved external symbol __imp__RegEnumValueW@32 referenced in function "?GetValues@NativeRegistry@Registry@@SA_NW4Registr yHive@2@P$AAVString@Platform@@PAP$01$AAV?$Array@UV alueInfo@Registry@@$00@5@@Z" (?GetValues@NativeRegistry@Registry@@SA_NW4Registr yHive@2@P$AAVString@Platform@@PAP$01$AAV?$Array@UV alueInfo@Registry@@$00@5@@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 11 error LNK2019: unresolved external symbol __imp__RegGetValueW@28 referenced in function "?ReadBinary@NativeRegistry@Registry@@SA_NW4Regist ryHive@2@P$AAVString@Platform@@1PAP$01$AAV?$Array@ E$00@5@@Z" (?ReadBinary@NativeRegistry@Registry@@SA_NW4Regist ryHive@2@P$AAVString@Platform@@1PAP$01$AAV?$Array@ E$00@5@@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 7 error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function "public: static bool __cdecl Registry::NativeRegistry::CanWrite(enum Registry::RegistryHive,class Platform::String ^,class Platform::String ^)" (?CanWrite@NativeRegistry@Registry@@SA_NW4Registry Hive@2@P$AAVString@Platform@@1@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 8 error LNK2019: unresolved external symbol __imp__RegQueryInfoKeyW@48 referenced in function "?GetSubKeyNames@NativeRegistry@Registry@@SA_NW4Re gistryHive@2@P$AAVString@Platform@@PAP$01$AAV?$Arr ay@P$AAVString@Platform@@$00@5@@Z" (?GetSubKeyNames@NativeRegistry@Registry@@SA_NW4Re gistryHive@2@P$AAVString@Platform@@PAP$01$AAV?$Arr ay@P$AAVString@Platform@@$00@5@@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
Error 9 error LNK2019: unresolved external symbol __imp__RegSetValueExW@24 referenced in function "?WriteBinary@NativeRegistry@Registry@@SA_NW4Regis tryHive@2@P$AAVString@Platform@@1P$01$ABV?$Array@E $00@5@@Z" (?WriteBinary@NativeRegistry@Registry@@SA_NW4Regis tryHive@2@P$AAVString@Platform@@1P$01$ABV?$Array@E $00@5@@Z) \Downloads\wp8nativeaccess-6c91b17645a467f1921df52f29e2504c09573b71\Registry\ Registry.obj Registry
23rd April 2014, 07:26 AM   |  #2  
Recognized Developer
Flag Seattle
Thanks Meter: 2,698
 
5,682 posts
Join Date:Joined: Jan 2011
More
Did you add those LIBs to the project configuration, under Linker inputs? They should be there already, though, at least for ARM. If you're compiling for x86 (using the libraries from the emulator) you may need to add them as inputs. I probably should have used #pragmas, but I tend to avoid those.

It's possible there's some problem of ordering. Unfortunately, I'm at the wrong computer to check right (business trip, no access to my home dev machine).
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes