.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 1 SDK (http://forums.bots-united.com/forumdisplay.php?f=33)
-   -   FreeBSD abstract declarator used as declaration (http://forums.bots-united.com/showthread.php?t=233)

j1mbo 06-01-2004 08:47

FreeBSD abstract declarator used as declaration
 
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,

Pierre-Marie Baty 06-01-2004 13:25

Re: FreeBSD abstract declarator used as declaration
 
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.

j1mbo 06-01-2004 15:24

Re: FreeBSD abstract declarator used as declaration
 
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?

Pierre-Marie Baty 06-01-2004 15:38

Re: FreeBSD abstract declarator used as declaration
 
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.


All times are GMT +2. The time now is 17:58.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.