daf@localhost ~/code/cpp/h4x $ cat q4h.h
#ifndef Q4H_H
#define Q4H_H
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <link.h>
#include <unistd.h>
#include <string.h>
#include <error.h>
#include "sdk/idlib/precompiled.h"
#include "aimbot.h"
#include "drawing.h"
#include "hook.h"
#include "visuals.h"
void debugFunc(const char *fmt, ...);
struct cfg{
bool esp;
bool aim;
bool wallhack;
bool chams;
bool menu;
bool ipmenu;
} hack; //= { true, true, true, true, false };
idGameLocal *my_gLocal;
gameExport_t *my_gExport;
idRenderWorld *my_rWorld;
//from sdk (Game_Local.cpp - GetGameAPI)
idSys * sys;
idCommon * common;
idCmdSystem * cmdSystem;
idCVarSystem * cvarSystem;
idFileSystem * fileSystem;
idNetworkSystem * networkSystem;
idRenderSystem * renderSystem;
idSoundSystem * soundSystem;
idRenderModelManager * renderModelManager;
idUserInterfaceManager * uiManager;
idDeclManager * declManager;
idAASFileManager * AASFileManager;
idCollisionModelManager * collisionModelManager;
rvBSEManager * bse;
//extern idCVar * idCVar::staticVars;
//extern idCVarHelp * idCVarHelp::staticCVarHelps;
//extern idCVarHelp * idCVarHelp::staticCVarHelpsTail;
fontInfoEx_t fontProfont, fontBigchars, fontStrogg, fontChain, fontLowPixel, fontMarine, fontrStrogg;
const idMaterial *boxMat;
idVec3 vecs[MAX_CENTITIES];
#endif
g++ -g -march=athlon64 -fPIC -Wall -DGAME_DLL -DQ4SDK -fno-strict-aliasing -fmessage-length=0 -m32 -ldl -lGL -shared hook.o aimbot.o drawing.o q4h.o visuals.o sdk/build/debug/game/idlib/Base64.os sdk/build/debug/game/idlib/BitMsg.os sdk/build/debug/game/idlib/CmdArgs.os sdk/build/debug/game/idlib/Dict.os sdk/build/debug/game/idlib/Heap.os sdk/build/debug/game/idlib/LangDict.os sdk/build/debug/game/idlib/Lexer.os sdk/build/debug/game/idlib/LexerFactory.os sdk/build/debug/game/idlib/Lib.os sdk/build/debug/game/idlib/mapfile.os sdk/build/debug/game/idlib/Parser.os sdk/build/debug/game/idlib/rvHeap.os sdk/build/debug/game/idlib/rvHeapArena.os sdk/build/debug/game/idlib/rvMemSys.os sdk/build/debug/game/idlib/Str.os sdk/build/debug/game/idlib/TextCompiler.os sdk/build/debug/game/idlib/Timer.os sdk/build/debug/game/idlib/TimingCollection.os sdk/build/debug/game/idlib/Token.os sdk/build/debug/game/idlib/bv/Bounds.os sdk/build/debug/game/idlib/bv/Box.os sdk/build/debug/game/idlib/bv/Frustum.os sdk/build/debug/game/idlib/bv/Sphere.os sdk/build/debug/game/idlib/containers/HashIndex.os sdk/build/debug/game/idlib/geometry/JointTransform.os sdk/build/debug/game/idlib/geometry/Surface.os sdk/build/debug/game/idlib/geometry/Surface_Patch.os sdk/build/debug/game/idlib/geometry/Surface_Polytope.os sdk/build/debug/game/idlib/geometry/Surface_SweptSpline.os sdk/build/debug/game/idlib/geometry/TraceModel.os sdk/build/debug/game/idlib/geometry/Winding.os sdk/build/debug/game/idlib/geometry/Winding2D.os sdk/build/debug/game/idlib/math/Angles.os sdk/build/debug/game/idlib/math/Complex.os sdk/build/debug/game/idlib/math/FFT.os sdk/build/debug/game/idlib/math/Lcp.os sdk/build/debug/game/idlib/math/Math.os sdk/build/debug/game/idlib/math/Matrix.os sdk/build/debug/game/idlib/math/Ode.os sdk/build/debug/game/idlib/math/Plane.os sdk/build/debug/game/idlib/math/Pluecker.os sdk/build/debug/game/idlib/math/Polynomial.os sdk/build/debug/game/idlib/math/Quat.os sdk/build/debug/game/idlib/math/Radians.os sdk/build/debug/game/idlib/math/Rotation.os sdk/build/debug/game/idlib/math/Simd.os sdk/build/debug/game/idlib/math/Simd_3DNow.os sdk/build/debug/game/idlib/math/Simd_generic.os sdk/build/debug/game/idlib/math/Simd_SSE.os sdk/build/debug/game/idlib/math/Simd_SSE2.os sdk/build/debug/game/idlib/math/Simd_SSE3.os sdk/build/debug/game/idlib/math/Vector.os sdk/build/debug/game/idlib/hashing/CRC16.os sdk/build/debug/game/idlib/hashing/CRC32.os sdk/build/debug/game/idlib/hashing/CRC8.os sdk/build/debug/game/idlib/hashing/Honeyman.os sdk/build/debug/game/idlib/hashing/MD4.os sdk/build/debug/game/idlib/hashing/MD5.os -o libQ4H.so
aimbot.o:sdk/idlib/../idlib/geometry/Winding.h:166: multiple definition of `my_gLocal'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
aimbot.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `my_rWorld'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
aimbot.o:/home/daf/code/cpp/h4x/aimbot.cpp:7: multiple definition of `common'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
aimbot.o: In function `idVec3':
sdk/idlib/../idlib/geometry/Winding.h:245: multiple definition of `plrVec'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
aimbot.o:sdk/idlib/../idlib/math/Quat.h:83: multiple definition of `w2s'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
aimbot.o:(.bss+0x2f8e0): multiple definition of `vecs'
hook.o:(.bss+0x2f8e0): first defined here
aimbot.o: In function `idVec3':
sdk/idlib/../idlib/math/Math.h:770: multiple definition of `orig_SDL_PollEvent'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
aimbot.o: In function `idVec3':
sdk/idlib/../idlib/math/Math.h:771: multiple definition of `orig_dlsym'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
aimbot.o:sdk/idlib/../idlib/math/Math.h:887: multiple definition of `orig_dlopen'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
aimbot.o:sdk/idlib/../idlib/math/Math.h:888: multiple definition of `orig_GetGameAPI'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
aimbot.o:sdk/idlib/../idlib/math/Math.h:899: multiple definition of `gameLibHandle'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
aimbot.o:sdk/idlib/../idlib/math/Vector.h:589: multiple definition of `gameLibAddress'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
aimbot.o: In function `idVec3':
sdk/idlib/../idlib/math/Quat.h:122: multiple definition of `view'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
aimbot.o:sdk/idlib/../idlib/math/Quat.h:106: multiple definition of `hack'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
aimbot.o:sdk/idlib/../idlib/math/Interpolate.h:159: multiple definition of `my_gExport'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
aimbot.o:sdk/idlib/../idlib/geometry/Winding.h:249: multiple definition of `sys'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
aimbot.o: In function `~idWinding':
sdk/idlib/../idlib/geometry/Winding.h:378: multiple definition of `cmdSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
aimbot.o: In function `~idWinding':
sdk/idlib/../idlib/math/Interpolate.h:160: multiple definition of `cvarSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
aimbot.o: In function `~idWinding':
sdk/idlib/../idlib/math/Interpolate.h:160: multiple definition of `fileSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
aimbot.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `networkSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
aimbot.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `renderSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
aimbot.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `soundSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
aimbot.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `renderModelManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
aimbot.o:sdk/idlib/../idlib/math/Interpolate.h:162: multiple definition of `uiManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
aimbot.o:sdk/idlib/../idlib/math/Interpolate.h:162: multiple definition of `declManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
aimbot.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `AASFileManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
aimbot.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `collisionModelManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
aimbot.o:sdk/idlib/../idlib/math/Interpolate.h:108: multiple definition of `bse'
hook.o:sdk/idlib/../game/MultiplayerGame.h:240: first defined here
aimbot.o:/home/daf/code/cpp/h4x/aimbot.cpp:9: multiple definition of `fontProfont'
hook.o:sdk/idlib/../game/MultiplayerGame.h:240: first defined here
aimbot.o:(.bss+0x6d20): multiple definition of `fontBigchars'
hook.o:(.bss+0x6d20): first defined here
aimbot.o:(.bss+0xd9c0): multiple definition of `fontStrogg'
hook.o:(.bss+0xd9c0): first defined here
aimbot.o:(.bss+0x14660): multiple definition of `fontChain'
hook.o:(.bss+0x14660): first defined here
aimbot.o:(.bss+0x1b300): multiple definition of `fontLowPixel'
hook.o:(.bss+0x1b300): first defined here
aimbot.o:(.bss+0x21fa0): multiple definition of `fontMarine'
hook.o:(.bss+0x21fa0): first defined here
aimbot.o:(.bss+0x28c40): multiple definition of `fontrStrogg'
hook.o:(.bss+0x28c40): first defined here
aimbot.o:(.bss+0x2f8dc): multiple definition of `boxMat'
hook.o:(.bss+0x2f8dc): first defined here
drawing.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `renderSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
drawing.o: In function `idVec3':
sdk/idlib/../idlib/geometry/Winding.h:245: multiple definition of `plrVec'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
drawing.o:sdk/idlib/../idlib/math/Quat.h:83: multiple definition of `w2s'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
drawing.o:(.bss+0x2f8e0): multiple definition of `vecs'
hook.o:(.bss+0x2f8e0): first defined here
drawing.o:(.bss+0x21fa0): multiple definition of `fontMarine'
hook.o:(.bss+0x21fa0): first defined here
drawing.o:(.bss+0x2f8dc): multiple definition of `boxMat'
hook.o:(.bss+0x2f8dc): first defined here
drawing.o:sdk/idlib/../idlib/math/Quat.h:106: multiple definition of `hack'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
drawing.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `networkSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
drawing.o:sdk/idlib/../idlib/geometry/Winding.h:166: multiple definition of `my_gLocal'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
drawing.o: In function `idVec3':
sdk/idlib/../idlib/math/Math.h:770: multiple definition of `orig_SDL_PollEvent'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
drawing.o: In function `idVec3':
sdk/idlib/../idlib/math/Math.h:771: multiple definition of `orig_dlsym'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
drawing.o:sdk/idlib/../idlib/math/Math.h:887: multiple definition of `orig_dlopen'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
drawing.o:sdk/idlib/../idlib/math/Math.h:888: multiple definition of `orig_GetGameAPI'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
drawing.o:sdk/idlib/../idlib/math/Math.h:899: multiple definition of `gameLibHandle'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
drawing.o:sdk/idlib/../idlib/math/Vector.h:589: multiple definition of `gameLibAddress'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
drawing.o: In function `idVec3':
/home/daf/code/cpp/h4x/drawing.cpp:31: multiple definition of `view'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
drawing.o:sdk/idlib/../idlib/math/Interpolate.h:159: multiple definition of `my_gExport'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
drawing.o:/home/daf/code/cpp/h4x/drawing.cpp:35: multiple definition of `my_rWorld'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
drawing.o:sdk/idlib/../idlib/geometry/Winding.h:249: multiple definition of `sys'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
drawing.o:sdk/idlib/../idlib/geometry/Winding.h:249: multiple definition of `common'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
drawing.o:sdk/idlib/../idlib/geometry/Winding.h:378: multiple definition of `cmdSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
drawing.o: In function `~idWinding':
sdk/idlib/../idlib/Dict.h:254: multiple definition of `cvarSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
drawing.o: In function `~idWinding':
sdk/idlib/../idlib/Dict.h:254: multiple definition of `fileSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
drawing.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `soundSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
drawing.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `renderModelManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
drawing.o:sdk/idlib/../idlib/math/Interpolate.h:162: multiple definition of `uiManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
drawing.o:sdk/idlib/../idlib/math/Interpolate.h:162: multiple definition of `declManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
drawing.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `AASFileManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
drawing.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `collisionModelManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
drawing.o: In function `drawPic(float, float, float, float, idMaterial const*, bool)':
sdk/idlib/../idlib/math/Interpolate.h:108: multiple definition of `bse'
hook.o:sdk/idlib/../game/MultiplayerGame.h:240: first defined here
drawing.o: In function `drawPic(float, float, float, float, idMaterial const*, bool)':
sdk/idlib/../idlib/math/Interpolate.h:108: multiple definition of `fontProfont'
hook.o:sdk/idlib/../game/MultiplayerGame.h:240: first defined here
drawing.o:(.bss+0x6d20): multiple definition of `fontBigchars'
hook.o:(.bss+0x6d20): first defined here
drawing.o:(.bss+0xd9c0): multiple definition of `fontStrogg'
hook.o:(.bss+0xd9c0): first defined here
drawing.o:(.bss+0x14660): multiple definition of `fontChain'
hook.o:(.bss+0x14660): first defined here
drawing.o:(.bss+0x1b300): multiple definition of `fontLowPixel'
hook.o:(.bss+0x1b300): first defined here
drawing.o:(.bss+0x28c40): multiple definition of `fontrStrogg'
hook.o:(.bss+0x28c40): first defined here
q4h.o: In function `idVec3':
sdk/idlib/../idlib/geometry/Winding.h:245: multiple definition of `plrVec'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
q4h.o:sdk/idlib/../idlib/math/Quat.h:83: multiple definition of `w2s'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
q4h.o:(.bss+0x2f8e0): multiple definition of `vecs'
hook.o:(.bss+0x2f8e0): first defined here
q4h.o: In function `debugFunc(char const*, ...)':
sdk/idlib/../idlib/math/Math.h:770: multiple definition of `orig_SDL_PollEvent'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
q4h.o: In function `debugFunc(char const*, ...)':
sdk/idlib/../idlib/math/Math.h:771: multiple definition of `orig_dlsym'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
q4h.o:sdk/idlib/../idlib/math/Math.h:887: multiple definition of `orig_dlopen'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
q4h.o:sdk/idlib/../idlib/math/Math.h:888: multiple definition of `orig_GetGameAPI'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
q4h.o:sdk/idlib/../idlib/math/Math.h:899: multiple definition of `gameLibHandle'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
q4h.o:sdk/idlib/../idlib/math/Vector.h:589: multiple definition of `gameLibAddress'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
q4h.o: In function `idVec3':
sdk/idlib/../idlib/math/Quat.h:122: multiple definition of `view'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
q4h.o:sdk/idlib/../idlib/math/Quat.h:106: multiple definition of `hack'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
q4h.o:sdk/idlib/../idlib/geometry/Winding.h:166: multiple definition of `my_gLocal'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
q4h.o:sdk/idlib/../idlib/math/Interpolate.h:159: multiple definition of `my_gExport'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
q4h.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `my_rWorld'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
q4h.o:sdk/idlib/../idlib/geometry/Winding.h:249: multiple definition of `sys'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
q4h.o:sdk/idlib/../game/MultiplayerGame.h:237: multiple definition of `common'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
q4h.o: In function `~idWinding':
sdk/idlib/../idlib/geometry/Winding.h:378: multiple definition of `cmdSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
q4h.o: In function `~idWinding':
sdk/idlib/../idlib/math/Interpolate.h:160: multiple definition of `cvarSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
q4h.o: In function `~idWinding':
sdk/idlib/../idlib/math/Interpolate.h:160: multiple definition of `fileSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
q4h.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `networkSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
q4h.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `renderSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
q4h.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `soundSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
q4h.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `renderModelManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
q4h.o:sdk/idlib/../idlib/math/Interpolate.h:162: multiple definition of `uiManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
q4h.o:sdk/idlib/../game/MultiplayerGame.h:239: multiple definition of `declManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
q4h.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `AASFileManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
q4h.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `collisionModelManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
q4h.o:sdk/idlib/../idlib/math/Interpolate.h:108: multiple definition of `bse'
hook.o:sdk/idlib/../game/MultiplayerGame.h:240: first defined here
q4h.o:sdk/idlib/../game/MultiplayerGame.h:240: multiple definition of `fontProfont'
hook.o:sdk/idlib/../game/MultiplayerGame.h:240: first defined here
q4h.o:(.bss+0x6d20): multiple definition of `fontBigchars'
hook.o:(.bss+0x6d20): first defined here
q4h.o:(.bss+0xd9c0): multiple definition of `fontStrogg'
hook.o:(.bss+0xd9c0): first defined here
q4h.o:(.bss+0x14660): multiple definition of `fontChain'
hook.o:(.bss+0x14660): first defined here
q4h.o:(.bss+0x1b300): multiple definition of `fontLowPixel'
hook.o:(.bss+0x1b300): first defined here
q4h.o:(.bss+0x21fa0): multiple definition of `fontMarine'
hook.o:(.bss+0x21fa0): first defined here
q4h.o:(.bss+0x28c40): multiple definition of `fontrStrogg'
hook.o:(.bss+0x28c40): first defined here
q4h.o:(.bss+0x2f8dc): multiple definition of `boxMat'
hook.o:(.bss+0x2f8dc): first defined here
visuals.o: In function `idVec4':
sdk/idlib/../idlib/geometry/Winding.h:166: multiple definition of `my_gLocal'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
visuals.o:(.bss+0x2f8dc): multiple definition of `boxMat'
hook.o:(.bss+0x2f8dc): first defined here
visuals.o: In function `idVec3':
sdk/idlib/../idlib/geometry/Winding.h:245: multiple definition of `plrVec'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
visuals.o:sdk/idlib/../idlib/math/Vector.h:619: multiple definition of `w2s'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
visuals.o:(.bss+0x2f8e0): multiple definition of `vecs'
hook.o:(.bss+0x2f8e0): first defined here
visuals.o: In function `idVec4':
sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `my_rWorld'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
visuals.o:(.bss+0x21fa0): multiple definition of `fontMarine'
hook.o:(.bss+0x21fa0): first defined here
visuals.o:sdk/idlib/../idlib/math/Interpolate.h:162: multiple definition of `declManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
visuals.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `renderSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
visuals.o: In function `idVec3':
sdk/idlib/precompiled.h:128: multiple definition of `orig_SDL_PollEvent'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
visuals.o: In function `idVec3':
sdk/idlib/precompiled.h:128: multiple definition of `orig_dlsym'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
visuals.o:sdk/idlib/../idlib/math/Math.h:887: multiple definition of `orig_dlopen'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
visuals.o:sdk/idlib/../idlib/math/Math.h:888: multiple definition of `orig_GetGameAPI'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
visuals.o:sdk/idlib/../idlib/math/Math.h:899: multiple definition of `gameLibHandle'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
visuals.o:sdk/idlib/../idlib/math/Vector.h:589: multiple definition of `gameLibAddress'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
visuals.o:sdk/idlib/../idlib/math/Quat.h:122: multiple definition of `view'
hook.o:/home/daf/code/cpp/h4x/hook.cpp:262: first defined here
visuals.o:sdk/idlib/../idlib/math/Quat.h:106: multiple definition of `hack'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
visuals.o: In function `idVec4':
sdk/idlib/../idlib/math/Vector.h:1218: multiple definition of `my_gExport'
hook.o:sdk/idlib/../game/MultiplayerGame.h:236: first defined here
visuals.o:sdk/idlib/../idlib/geometry/Winding.h:249: multiple definition of `sys'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
visuals.o:/home/daf/code/cpp/h4x/visuals.cpp:8: multiple definition of `common'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
visuals.o:sdk/idlib/../idlib/geometry/Winding.h:378: multiple definition of `cmdSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
visuals.o: In function `~idWinding':
sdk/idlib/../idlib/Dict.h:254: multiple definition of `cvarSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:237: first defined here
visuals.o: In function `~idWinding':
sdk/idlib/../idlib/Dict.h:254: multiple definition of `fileSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
visuals.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `networkSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
visuals.o:sdk/idlib/../idlib/geometry/Winding.h:167: multiple definition of `soundSystem'
hook.o:sdk/idlib/../game/MultiplayerGame.h:238: first defined here
visuals.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `renderModelManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
visuals.o:sdk/idlib/../idlib/math/Interpolate.h:162: multiple definition of `uiManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
visuals.o:sdk/idlib/../idlib/math/Quat.h:123: multiple definition of `AASFileManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
visuals.o:/home/daf/code/cpp/h4x/visuals.cpp:12: multiple definition of `collisionModelManager'
hook.o:sdk/idlib/../game/MultiplayerGame.h:239: first defined here
visuals.o:/home/daf/code/cpp/h4x/visuals.cpp:75: multiple definition of `bse'
hook.o:sdk/idlib/../game/MultiplayerGame.h:240: first defined here
visuals.o:/home/daf/code/cpp/h4x/visuals.cpp:75: multiple definition of `fontProfont'
hook.o:sdk/idlib/../game/MultiplayerGame.h:240: first defined here
visuals.o:(.bss+0x6d20): multiple definition of `fontBigchars'
hook.o:(.bss+0x6d20): first defined here
visuals.o:(.bss+0xd9c0): multiple definition of `fontStrogg'
hook.o:(.bss+0xd9c0): first defined here
visuals.o:(.bss+0x14660): multiple definition of `fontChain'
hook.o:(.bss+0x14660): first defined here
visuals.o:(.bss+0x1b300): multiple definition of `fontLowPixel'
hook.o:(.bss+0x1b300): first defined here
visuals.o:(.bss+0x28c40): multiple definition of `fontrStrogg'
hook.o:(.bss+0x28c40): first defined here
collect2: ld returned 1 exit status
make: *** [libQ4H.so] Error 1