Thread: Static linked DirectX or dynamic?

  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607

    Static linked DirectX or dynamic?

    In my projects I've been linking with the .lib portion of DirectX. Does this mean I'm not using the DLLs? If so, how do I link with the DLLs instead of the .LIBs? Every book I have states to link with the .lib. But in programming when you link with a .lib that is a static link and you are placing the lib code in your exe. Not what I want to do.

    Please explain - Mr. Wizard?

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Those .lib files are not static libraries they are import libraries for the appropriate DLL's they correspond to.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    That makes more sense. I tried to explain it to my friend but he brought up a point about the .lib and static links. I knew it wasn't the same with DX, but I failed to remember they were import libraries. Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linked List and Dynamic Memory Allocation
    By girly_engineer in forum C Programming
    Replies: 4
    Last Post: 04-18-2009, 11:50 AM
  2. LNK2001 ERROR!!! need help
    By lifeafterdeath in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2008, 05:05 PM
  3. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  4. static and dynamic
    By chrismiceli in forum C Programming
    Replies: 1
    Last Post: 08-18-2003, 09:19 PM
  5. dynamic memory + linked lists
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 02-10-2002, 04:50 PM