AlliedModders
XFactor Servers

Compiler problem: including cbase.h..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pheadxdll
SourceMod Donor
Karma: Neutral
Old 11-04-2009 , 10:57   Compiler problem: including cbase.h..
Reply With Quote #1

This is probably a very stuipd question, but I hope it's an easy fix. I'm trying to include cbase.h but VS isn't going to let me. I have tons of redeclaration errors like:

Code:
1>c:\sdk\hl2sdk\public\mathlib/math_base.h(1215) : error C2084: function 'bool QuickBoxSphereTest(const Vector &,float,const Vector &,const Vector &)' already has a body
1>        C:\sdk\hl2sdk-ob-valve\public\mathlib/mathlib.h(1342) : see previous definition of 'QuickBoxSphereTest'
It stopped at 100 errors, and those were all in mathlib.h. I am including cbase.h like this:

#define GAME_DLL 1
#include "cbase.h"

Thanks for any help! I probably screwed up my include paths or something like that.

Last edited by pheadxdll; 11-04-2009 at 11:01..
pheadxdll is offline
pheadxdll
SourceMod Donor
Karma: Neutral
Old 11-04-2009 , 11:21   Re: Compiler problem: including cbase.h..
Reply With Quote #2

Actually..I got it to work! I had a look at SDKHooks and copied some of code from there. Sorry for the needless post.
pheadxdll is offline
Reply


Thread Tools
Display Modes

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 05:41.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Theme made by Freecode Sponsored by Layered Technologies