Hey Martin,
The only dependency that appears is KERNEL32.dll, which is odd because from the dependency walker program I see many more dependencies all of which are children of KERNEL32.dll, which is loaded correctly, but yet all these child dependencies fail to load. I took a
screenshot from dependency walker.
And by blank, I mean they are pointing to the empty stub function that we have the function point to when the .dll isn't loaded correctly.
Here's my build script:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | @echo off
set CommonCompilerFlags= -MT -nologo -Gm- -GR- -EHa- -Od -Oi -WX -W4 -wd4505 -wd4201 -wd4100 -wd4189 -DHANDMADE_INTERNAL=1 -DHANDMADE_SLOW=1 -DHANDMADE_WIN32=1 -FC -Z7 -Fmwin32_handmade.map
set CommonLinkerFlags= -incremental:no -opt:ref user32.lib gdi32.lib winmm.lib
REM TODO - can we just build both with one exe?
IF NOT EXIST ..\..\build mkdir ..\..\build
pushd ..\..\build
REM 32-bit build
REM cl %CommonCompilerFlags% ..\handmade\code\win32_handmade.cpp /link -subsystem:windows,5.1 %CommonLinkerFlags%
REM 64-bit build
cl %CommonCompilerFlags% \code\handmade_game_engine.cpp -Fmhandmade_game_engine.map /LD /link /EXPORT:GameGetSoundSamples /EXPORT:GameUpdateAndRender
cl %CommonCompilerFlags% \code\win32_handmade_follow.cpp -Fmwin32_handmade_follow.map /link %CommonLinkerFlags%
popd
|
Thanks!