Sign in to follow this  

coredll.lib

This topic is 4203 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey I was getting the following linker error: dxut.lib(DXUTmisc.obj) : error LNK2019: unresolved external symbol __imp__RegSetValueExW@24 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ) dxut.lib(DXUTmisc.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ) dxut.lib(DXUTmisc.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ) dxut.lib(DXUTmisc.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ) when I tried to compile my program shell (just a blank window using dxut). I looked up those 4 functions in msdn and found out theyre from coredll.lib which I then tried to link to my project. VC++ couldnt find it though. Ive done some googling and managed to find out that its a Windows CE (or embedded? dont rly remember) file and I shouldnt have any functions that use it. I also found an old post of mine on this site asking the same question. I know I fixed it back then but I have no clue how and none of the posts gave me the answer. Any help? also if someone could tell me how to set all these lib files to link by default to new projects that would be great.

Share this post


Link to post
Share on other sites
Take a look at the .lib files that you are linking too. They should be all of the following for DXUT:

retail build:
dxerr.lib dxguid.lib d3dx9.lib d3d9.lib winmm.lib comctl32.lib

or for the debug build:
dxerr.lib dxguid.lib d3dx9d.lib d3d9.lib winmm.lib comctl32.lib

You do not need coredll.lib.

Share this post


Link to post
Share on other sites
Oh, I didn't read that correctly. I thought you were getting a link error for one of the DXUT calls. I see that what it is really saying is that it cannot link to some other calls that are in the DXUT functions.

WHen I look up "RegOpenKeyEx" in Visual Studio 2003 help, it says that it is in the platform SDK. So, you need to be sure that the version of VS you are using has the latest platform SDK files installed. They are available on MSDN.

It also says that this function is:

Header: Declared in Winreg.h; include Windows.h.
Library: Use Advapi32.lib.

So, if you have the platform SDK installed correctly, you won't need to do anything extra in your project (you don't have to include the advapi32.lib file in your project).

Share this post


Link to post
Share on other sites

This topic is 4203 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this