Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,909 Members 37,875 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Issues compiling WP8 Native Access project

Tip us?
 
carballude
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 1
Join Date: Apr 2014
Default [Q] Issues compiling WP8 Native Access project

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
 
GoodDayToDie
Old
#2  
Recognized Developer
Thanks Meter 2678
Posts: 5,626
Join Date: Jan 2011
Location: Seattle
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).
Win8/Windows RT projects:
List of desktop apps for hacked RT devices

WP8 projects:
Native Access WebServer and Libraries
WP8 Interop Unlocks
Storage Cleanup tool

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.


Do not private message me with questions that should have been posted on the forum! Not only are you wasting your time - I'm not going to bother writing an answer to such a question for only one person - but I will probably block you from PMing me in the future as well.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes