command line compile
|
Re: command line compile
You need to make a MAKE file.
And pass that to the command line compile. MCVS can export its make file. If you don';t have that then you'll need to make your own make file. Im don't know how to do that yet. im using the msvc visual version so i get the make file which msvc makes it self . I only know how to do my linux make file. And i asume that's not compatible with msvc. |
Re: command line compile
You're not forced to make a Makefile... you can compile from the command line if you know what you are doing.
For example, a command-line compile and linking can look like this: Quote:
|
Re: command line compile
so what do i do with this makefile?
ive setenv /2000 /RETAIL from dos prompt in: c:\program files\microsoft sdk> makefile is here: c:\program files\microsoft sdk\metamod-1.17> sorry im a total n00b!!! where can i find the commands to use? do i use them from c:\program files\microsoft sdk> or does the dir matter? EDIT: ok wow! quick one pmb! this should help a bit. Is there a good online resource for command line compiler (.net framework)? msdn is very difficult to find compiler help. It says that the command line compiler is well documented, it probably is but i cannot find the dox!?! |
Re: command line compile
so i just got msvc 6 se (off a friend of a friend who took a class in college). I get this error:
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 what didnt i do right, im still getting used to this program. |
Re: command line compile
well for starters it would help if you posted what was contained on line 386 of engine_api.cpp...
|
Re: command line compile
i suppose you're right
META_ENGINE_HANDLE_void_varargs(FN_ENGINEFPRINTF, pfnEngineFprintf, pfile, szFmt); from void mm_EngineFprintf(FILE *pfile, char *szFmt, ...) { META_ENGINE_HANDLE_void_varargs(FN_ENGINEFPRINTF, pfnEngineFprintf, pfile, szFmt); RETURN_API_void() } |
Re: command line compile
Change...
Code:
void mm_EngineFprintf(FILE *pfile, char *szFmt, ...) Code:
void mm_EngineFprintf((struct _iobuf *)pfile, char *szFmt, ...) botman |
Re: command line compile
That's what I think too. Metamod must be detecting what type of compiler it's being compiled on, and yours must not be caught in the list. You'd perhaps better have a look at where it's done.
|
Re: command line compile
/* Define __cdecl for non-Microsoft compilers */
could this be it? (from: stdio.h) I am using a microsoft compiler though: msvc 6 se |
All times are GMT +2. The time now is 04:32. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.