Author Topic: debbuging custom libraries?  (Read 3145 times)


  • Member
  • **
  • Posts: 87
debbuging custom libraries?
« on: January 12, 2017, 04:17:05 AM »
I've been fooling around with Siekmanski's Stars dirextx 9 example. It seems that the lib file D3DMATHSSE2.LIB is a custom lib. When I try to build the project using debug, I get a unknown linker error. I'm by no means a pro at this stuff
but is there a linker trick to get the linker to recognize custom libraries?


  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: debbuging custom libraries?
« Reply #1 on: January 12, 2017, 11:10:57 AM »
Its a bit hard to help you with no code to evaluate. Show us how you have included the lib that Siekmanski has written and we can probably help you.
hutch at movsd dot com    :biggrin:  :skrewy:


  • Member
  • *****
  • Posts: 2719
Re: debbuging custom libraries?
« Reply #2 on: January 13, 2017, 10:09:46 PM »
Maybe the includes are in the wrong order...
Include the standard headers first, see below.

Code: [Select]
    includelib kernel32.lib
    includelib user32.lib
    includelib gdi32.lib
    includelib ole32.lib
    includelib oleaut32.lib

    include    includes\
    include    includes\
    includelib libs\d3d9.lib

    include    includes\D3DTexture.Inc
    includelib libs\D3DTexture.lib
    include    includes\
    includelib libs\D3DMathSSE2.lib
Creative coders use backward thinking techniques as a strategy.


  • Regular Member
  • *
  • Posts: 20
  • Quam olim da capo.
Re: debbuging custom libraries?
« Reply #3 on: May 09, 2023, 05:54:40 AM »
Code: [Select]
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : fatal error LNK1104: cannot open file "includes\d3d9.lib"

D3DTexture.lib -> "oleaut32.lib /DEFAULTLIB:includes\d3d9.lib"

Just copy d3d9.lib in includes directory
"knowledge is now free at last, everything should be free from now on, enjoy knowledge and life and work for everybody else"