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

BugCatcher

  • Regular Member
  • *
  • Posts: 27
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?

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4513
  • 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
http://www.masm32.com    :biggrin:  :biggrin:

Siekmanski

  • Member
  • *****
  • Posts: 1043
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]
    include    windows.inc
    include    kernel32.inc
    includelib kernel32.lib
    include    user32.inc
    includelib user32.lib
    include    gdi32.inc
    includelib gdi32.lib
    include    ole32.inc
    includelib ole32.lib
    include    oleaut32.inc
    includelib oleaut32.lib

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

    include    includes\D3DTexture.Inc
    includelib libs\D3DTexture.lib
    include    includes\D3DMathSSE2.inc
    includelib libs\D3DMathSSE2.lib