|
|
|
missing header file ( help)
Posted by whizkide [send private reply] at July 24, 2002, 05:10:30 PM
could someone please send me the content of the "system.h" header file. mine is missing.
id appreciate it u could just copy it and paste on the board or mail it to me at whizkide@yahoo.com
Posted by gian [send private reply] at July 24, 2002, 05:13:21 PM
It's quite important in a case like this that you tell us what operating system and compiler you are using, because they don't all just work with each other.
Besides, you are the "best thing/programmer alive", so you probably don't need help from trivial idiot such as us :-)
Posted by Psion [send private reply] at July 24, 2002, 06:33:14 PM
I've never heard of any standard "system.h". It sounds like one of those common cases of trying to compile code in a compiler that was never meant to compile it.
Posted by CodeRed [send private reply] at July 25, 2002, 12:24:48 AM
"you are the "best thing/programmer alive", so you probably don't need help from trivial idiot such as us"
Where did that come from?
Posted by CodeRed [send private reply] at July 25, 2002, 12:27:52 AM
I assume you are using windows, both Borland and VC++ have a "system.h", as gian said you would need the correct one, and I don't have either on my machine right now
Posted by buzgub [send private reply] at July 25, 2002, 01:06:41 AM
Codered, look at whizkide's profile.
Posted by Zandalf [send private reply] at July 25, 2002, 01:51:23 AM
and _why_ would you be wanting a system.h? MSDN has no reference to it, so I'm curious as to what you're trying to do with it.
Posted by CViper [send private reply] at July 25, 2002, 02:38:37 AM
And besids that, you probably need the correct .lib's for it aswell...
Posted by RedX [send private reply] at July 25, 2002, 07:28:58 AM
Here's one from DJGPP. Since you are the best programmer alive writting the implementation wouldn't be a problem to you.
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#ifndef __dj_include_sys_system_h__
#define __dj_include_sys_system_h__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
#ifndef __STRICT_ANSI__
#ifndef _POSIX_SOURCE
extern int _shell_command (const char *_prog, const char *_cmdline);
extern int _is_unixy_shell (const char *_prog);
extern int _is_dos_shell (const char *_prog);
/* Checking for special executable formats */
typedef struct {
char magic[16];
int struct_length;
char go32[16];
unsigned char buffer[0];
} _v1_stubinfo;
typedef struct {
union {
unsigned version:8; /* The version of DJGPP created that COFF exe */
struct {
unsigned minor:4; /* The minor version of DJGPP */
unsigned major:4; /* The major version of DJGPP */
} v;
} version;
unsigned object_format:4; /* What an object format */
# define _V2_OBJECT_FORMAT_UNKNOWN 0x00
# define _V2_OBJECT_FORMAT_COFF 0x01
unsigned exec_format:4; /* What an executable format */
# define _V2_EXEC_FORMAT_UNKNOWN 0x00
# define _V2_EXEC_FORMAT_COFF 0x01
# define _V2_EXEC_FORMAT_STUBCOFF 0x02
# define _V2_EXEC_FORMAT_EXE 0x03
# define _V2_EXEC_FORMAT_UNIXSCRIPT 0x04
unsigned valid:1; /* Only when nonzero all the information is valid */
unsigned has_stubinfo:1; /* When nonzero the stubinfo info is valid */
unsigned unused:14;
_v1_stubinfo *stubinfo;
} _v2_prog_type;
/* When program == NULL you have to pass a valid file handle
in fd, otherwise the file is opened and closed by the function */
const _v2_prog_type *_check_v2_prog(const char *program, int fd);
#endif /* !_POSIX_SOURCE */
#endif /* !__STRICT_ANSI__ */
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
#ifndef __dj_ENFORCE_FUNCTION_CALLS
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
#ifdef __cplusplus
}
#endif
#endif /* __dj_include_sys_system_h__ */
Register as a new user | |||||||||||