.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Error compiling METAMOD 1.17 (http://forums.bots-united.com/showthread.php?t=84)

stefanhendriks 30-12-2003 16:54

Error compiling METAMOD 1.17
 
I set up the correct include paths, i applied the latest .h files from Alfed at valve. I also applied PMB's patch. I get over 100 of errors like this:

Code:

engine_api.cpp(386) : error C2440: '=' : cannot convert from 'void (__cdecl *)(void *,char *,...)' to 'void (__cdecl *)(struct _iobuf *,char *,...)'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast

I bet something simple is just wrong, but i can't find it. Perhaps anyone can help me here?

btw, if you where searching for the latest headers of the 'new but not yet released sdk', i have uploaded them to bots-united (/home/source)

botmeister 30-12-2003 21:10

Re: Error compiling METAMOD 1.17
 
Looks like the functions headers are different.

The compiler is complaining that you are replacing void * with struct _iobuf * (or the otherway around).

Search for the function headers and make sure they all match up, or are typed cast correctly.

stefanhendriks 30-12-2003 21:27

Re: Error compiling METAMOD 1.17
 
well, i also figured the functions do not match, but i don't know what header files to get on. I just installed the sdk and such, i don't use different .h files then usual, thats why i am puzzled ( i am using the original header files already).

Pierre-Marie Baty 30-12-2003 21:45

Re: Error compiling METAMOD 1.17
 
yes... there is one change you forgot to apply. There is one of the functions in the enginefuncs which takes normally a "FILE *" as first parameter, you need to replace this by "void *". I can't remember which one though.


All times are GMT +2. The time now is 09:41.

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