Raised This Month: $32 Target: $400
 8% 

DLL_IMPORT does not name a type


Post New Thread Reply   
 
Thread Tools Display Modes
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
psychonic

BAFFLED
Join Date: May 2008
Old 07-12-2015 , 12:11   Re: DLL_IMPORT does not name a type
Reply With Quote #2

You're probably missing some defines. I believe you need all of _LINUX, _POSIX, LINUX, and POSIX, and possibly others depending on which SDK it is.

Last edited by psychonic; 07-12-2015 at 12:11.
psychonic is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-12-2015 , 12:29   Re: DLL_IMPORT does not name a type
Reply With Quote #3

Unfortunately it doesn't help
I use sourcemod-sampleext-master exemple from the most recent SDK, is it only for windows?
kadet.89 is offline
Send a message via Skype™ to kadet.89
psychonic

BAFFLED
Join Date: May 2008
Old 07-12-2015 , 12:47   Re: DLL_IMPORT does not name a type
Reply With Quote #4

Quote:
Originally Posted by kadet.89 View Post
Unfortunately it doesn't help
I use sourcemod-sampleext-master exemple from the most recent SDK, is it only for windows?
The SDKs are for whatever platforms that the game runs on, so most of them are for Windows, Linux, and Mac. You still haven't said which SDK you're talking about, but all of the branches at https://github.com/alliedmodders/hl2sdk are what we use to compile MMS and SM on all three platforms.
psychonic is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-12-2015 , 13:08   Re: DLL_IMPORT does not name a type
Reply With Quote #5

https://github.com/alliedmodders/sourcemod
https://github.com/alliedmodders/hl2sdk
https://github.com/alliedmodders/metamod-source
kadet.89 is offline
Send a message via Skype™ to kadet.89
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-12-2015 , 13:16   Re: DLL_IMPORT does not name a type
Reply With Quote #6

The hl2sdk repo contains the SDKs for every supported engine, we need to know WHICH ONE YOU ARE USING.
__________________
asherkin is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-12-2015 , 13:36   Re: DLL_IMPORT does not name a type
Reply With Quote #7

CSS
Attached Files
File Type: zip Sample.zip (42.4 KB, 93 views)

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

BAFFLED
Join Date: May 2008
Old 07-12-2015 , 13:57   Re: DLL_IMPORT does not name a type
Reply With Quote #8

Are you using the css branch of the https://github.com/alliedmodders/hl2sdk ? It defaults to sdk2013.

git checkout css would switch the branch after cloning.

Last edited by psychonic; 07-12-2015 at 13:58.
psychonic is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-12-2015 , 14:08   Re: DLL_IMPORT does not name a type
Reply With Quote #9

Thank you, it did the trick
kadet.89 is offline
Send a message via Skype™ to kadet.89
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode