Static linked DirectX or dynamic?

This is a discussion on Static linked DirectX or dynamic? within the Game Programming forums, part of the General Programming Boards category; In my projects I've been linking with the .lib portion of DirectX. Does this mean I'm not using the DLLs? ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,597

    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
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,597
    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, 12:50 PM
  2. LNK2001 ERROR!!! need help
    By lifeafterdeath in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2008, 06:05 PM
  3. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 10:42 PM
  4. static and dynamic
    By chrismiceli in forum C Programming
    Replies: 1
    Last Post: 08-18-2003, 10:19 PM
  5. dynamic memory + linked lists
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 02-10-2002, 04:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21