News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

debbuging custom libraries?

Started by BugCatcher, January 12, 2017, 04:17:05 AM

Previous topic - Next topic

BugCatcher

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--

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.

Siekmanski

Maybe the includes are in the wrong order...
Include the standard headers first, see below.

    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

Creative coders use backward thinking techniques as a strategy.

caraveiro

Error:

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"


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

Solution:
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"
+ORC