Jump to content
  • Advertisement
Sign in to follow this  
michael879

coredll.lib

This topic is 4415 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
Advertisement
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
yea somehow when I went back to msdn it showed me a different lib file?? avi---32.lib or something dont remember. weird..

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!