View Single Post
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-11-2015 , 10:29   DLL_IMPORT does not name a type
Reply With Quote #1

I've updated hl2sdk and mmsource, and now have some errors when try to compile extensions (linux):
These two uncludes:
#include <IEngineTrace.h>
#include <igameevents.h>

give this error:

Quote:
../SDK/hl2sdk/public/tier0/platform.h:1086:28: error: ‘DLL_IMPORT’ does not name a type
#define PLATFORM_INTERFACE DLL_IMPORT
^
../SDK/hl2sdk/public/tier0/fasttimer.h:28:1: note: in expansion of macro ‘PLATFORM_INTERFACE’
PLATFORM_INTERFACE double g_ClockSpeedSecondsMultiplier;
^
In file included from ../SDK/hl2sdk/public/tier0/platform.h:1338:0,
from ../SDK/hl2sdk/public/tier1/interface.h:52,
from ../SDK/hl2sdk/public/igameevents.h:19,
from extension.h:54,
from extension.cpp2:
../SDK/hl2sdk/public/tier0/fasttimer.h:74:22: error: variable ‘DLL_CLASS_IMPORT CClockSpeedInit’ has initializer but incomplete type
class PLATFORM_CLASS CClockSpeedInit
^
../SDK/hl2sdk/public/tier0/fasttimer.h:76:1: error: expected primary-expression before ‘public’
public:
^
../SDK/hl2sdk/public/tier0/fasttimer.h:76:1: error: expected ‘}’ before ‘public’
../SDK/hl2sdk/public/tier0/fasttimer.h:76:1: error: expected ‘,’ or ‘;’ before ‘public’
../SDK/hl2sdk/public/tier0/fasttimer.h:83:1: error: expected declaration before ‘}’ token
};
#include <iplayerinfo.h>

Quote:
In file included from ../SDK/hl2sdk/public/tier0/platform.h:1338:0,
from ../SDK/hl2sdk/public/tier0/commonmacros.h:15,
from ../SDK/hl2sdk/public/tier0/basetypes.h:11,
from ../SDK/hl2sdk/public/mathlib/vector.h:20,
from ../SDK/hl2sdk/public/game/server/iplayerinfo.h:12,
from extension.cpp8:
../SDK/hl2sdk/public/tier0/fasttimer.h:74:22: error: variable ‘DLL_CLASS_IMPORT CClockSpeedInit’ has initializer but incomplete type
class PLATFORM_CLASS CClockSpeedInit
#include <itoolentity.h>
Quote:
In file included from ../SDK/hl2sdk/public/tier0/platform.h:1338:0,
from ../SDK/hl2sdk/public/tier1/interface.h:52,
from ../SDK/hl2sdk/public/toolframework/itoolentity.h:13,
from extension.cpp:44:
../SDK/hl2sdk/public/tier0/fasttimer.h:74:22: error: variable ‘DLL_CLASS_IMPORT CClockSpeedInit’ has initializer but incomplete type
class PLATFORM_CLASS CClockSpeedInit
Does it mean that current SDK version is broken? And where can I get a valid verion?

Last edited by kadet.89; 07-12-2015 at 11:48.
kadet.89 is offline
Send a message via Skype™ to kadet.89