# Is this possible in DirectX? (MSVC linking question)

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

## Recommended Posts

Hello - I want to link all the DirectX9 .libs into my engine .lib. The idea being that I can distribute my lib without the users having to have the DirectX SDK since they would be contained in my engine .lib It all works perfectly apart from I get 1000's of linker warnings when building the engine lib, all saying the same:
d3d9.lib(d3d9.dll) : warning LNK4006: _Direct3DCreate9@4 already defined in d3d9.lib(d3d9.dll); second definition ignored
d3d9.lib(d3d9.dll) : warning LNK4006: __imp__Direct3DCreate9@4 already defined in d3d9.lib(d3d9.dll); second definition ignored

etc...

Any help would be appreciated.

##### Share on other sites
First, users don't have to install the SDK -- they just install the runtime. Second, they will still need the DLLs, which means they have to install the runtime.

##### Share on other sites
Quote:
 Original post by JohnBoltonFirst, users don't have to install the SDK -- they just install the runtime. Second, they will still need the DLLs, which means they have to install the runtime.

I think the OP was refering to "user" as other developers, not the end user of a game.

##### Share on other sites
Yes sorry - user as in a user of my .lib :)

• 19
• 10
• 19
• 14
• 19