Is this possible in DirectX? (MSVC linking question)

This topic is 4883 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 :)

1. 1
Rutin
37
2. 2
3. 3
4. 4
5. 5

• 11
• 10
• 13
• 103
• 11
• Forum Statistics

• Total Topics
632976
• Total Posts
3009672
• Who's Online (See full list)

There are no registered users currently online

×

Important Information

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!