So, exactly what other directories do I need included?
I have
hlsdk\SourceCode\common
hlsdk\SourceCode\dlls
hlsdk\SourceCode\engine
hlsdk\SourceCode\game_shared
hlsdk\SourceCode\pm_shared
amxmodx\amxmodx
amxmodx\engine
amxmodx\sc
amxmodx\amxmodx\sdk
"C:\Program Files\Microsoft SDK\include" //This is where the Windown SDK is
metamodx\metamodx
"C:\Program Files\Microsoft Visual C++ Toolkit 2003\include" //standard includes for the compiler
Which of those do I need, do I need any others?
I then use
cl /EHsc /LD /I%INCLUDE% amxmodx.cpp
Compiler flags: Use NT based stuff, compile to a dll, and include everything above
to compile.. compiling finishes fine, linking fails
This is using the compiler/linker from VS without VS..
the entire batch file to compile is
Code:
@echo off
Set PATH=C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;%PATH%
Set INCLUDE=%INCLUDE%;C:\source\metamodx\hlsdk\SourceCode\common;C:\source\metamodx\hlsdk\SourceCode\dlls
Set INCLUDE=%INCLUDE%;C:\source\metamodx\hlsdk\SourceCode\engine;C:\source\metamodx\hlsdk\SourceCode\game_shared;C:\source\metamodx\hlsdk\SourceCode\pm_shared
Set INCLUDE=%INCLUDE%;C:\Source\amxmodx\amxmodx;C:\amxmodx\amxmodx\engine;C:\Source\amxmodx\amxmodx\sdk
Set INCLUDE=%INCLUDE%;"C:\Program Files\Microsoft SDK\include"
Set INCLUDE=%INCLUDE%;C:\Source\metamodx\metamodx;C:\Source\amxmodx\sc;"C:\Program Files\Microsoft Visual C++ Toolkit 2003\include"
Set LIB=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;%LIB%
cd amxmodx
cl /EHsc /LD /I%INCLUDE% amxmodx.cpp
Pause
Anything I should try?
I get errors like this
amxmodx.obj : error LNK2019: unresolved external symbol _amx_Release referenced in function "long __cdecl callfunc_end(struct tagAMX *,long *)" (?callfunc_end@@YAJPAUtagAMX@@PAJ@Z)
Would post this elsewhere.. but noone in the other forums have a clue as to using anything other then small
__________________