.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
FreeBSD abstract declarator used as declaration
Old
  (#1)
j1mbo
Guest
 
Status:
Posts: n/a
Default FreeBSD abstract declarator used as declaration - 06-01-2004

When compiling the DMC server DLL on
FreeBSD 5.1 (egcs 1.1.2)
I get the following wierd error:
Code:
In file included from /usr/include/stdarg.h:42,
                 from extdll.h:55,
                 from animating.cpp:23:
/usr/include/sys/_types.h:80: abstract declarator used as declaration
the line it refers to in _types.h is as follows
Code:
typedef       __ct_rune_t     __wchar_t;
If I comment out that line it starts to compile normally,
but problems occur later on in the compile (near pm_shared.cpp).
Code:
/usr/include/stdlib.h:57: parse error before `wchar_t'
Is there a way around this?

Also would like to note that in order to get the HL sdk to compile
on FreeBSD I needed to get the Egcs 1.1.2 package from the Freebsd ftp
ftp://ftp.freebsd.org/pub/FreeBSD/po...egcs-1.1.2.tgz
I could not get the egcs source distribution to compile, it gave a similar
error to the one mentioned above.

Thanks,

Last edited by j1mbo; 06-01-2004 at 09:55.. Reason: clarification
  
Reply With Quote
Re: FreeBSD abstract declarator used as declaration
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: FreeBSD abstract declarator used as declaration - 06-01-2004

You can't compile anything HL-related straight out of the box on FreeBSD because HL is meant to run on Linux, and FreeBSD and Linux have different binary formats.

You can have a Linux HL server running on FreeBSD though, because FreeBSD knows how to *EMULATE* a Linux environment to make Linux binaries run.

But you can't compile a Linux binary on your FreeBSD box with your FreeBSD compiler, because you will get a FreeBSD binary, and not a Linux one - unless you do a "cross-compile", which is quite a complicated thing to do.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: FreeBSD abstract declarator used as declaration
Old
  (#3)
j1mbo
Guest
 
Status:
Posts: n/a
Default Re: FreeBSD abstract declarator used as declaration - 06-01-2004

Sigh, ok thanks for the info.

Which takes more time, learning to cross-compile on freebsd?
or installing gnu-linux ?

Why don't they put these things in the SDK readme?
or is there a faq somewhere that I don't know about?

Last edited by j1mbo; 06-01-2004 at 16:25.. Reason: added some whining
  
Reply With Quote
Re: FreeBSD abstract declarator used as declaration
Old
  (#4)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: FreeBSD abstract declarator used as declaration - 06-01-2004

definitely learning to cross-compile on freebsd

AFAIK, there is no other documentation about the Half-Life SDK than the text files that come with the SDK.
Eventually, botman (HPB_bot) and Will Day (metamod) have written a small blurb and a (very incomplete) API reference on their respective websites.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com