C/C++ Datei, x64 Kompatibel machen...?
-
Ich hoffe ich kann hier hilfe finden. Es geht darum das ich ein Source Code (ioQuake3) Kompilieren will unzwar als 64-Bit Anwendung mit Visual Studio 2008 Professional. Ich habs versucht und festgestellt das die datei q_platform.h beim kompiliren nicht mit der x64 archiktetur kompatibel ist... was kann ich nun machen ??
Hier der Code:
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. This file is part of Quake III Arena source code. Quake III Arena source code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Quake III Arena source code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Quake III Arena source code; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA =========================================================================== */ #ifndef __Q_PLATFORM_H #define __Q_PLATFORM_H // this is for determining if we have an asm version of a C function #ifdef Q3_VM #define id386 0 #define idppc 0 #define idppc_altivec 0 #else #if (defined _M_IX86 || defined __i386__) && !defined(C_ONLY) #define id386 1 #else #define id386 0 #endif #if (defined(powerc) || defined(powerpc) || defined(ppc) || \ defined(__ppc) || defined(__ppc__)) && !defined(C_ONLY) #define idppc 1 #if defined(__VEC__) #define idppc_altivec 1 #ifdef MACOS_X // Apple's GCC does this differently than the FSF. #define VECCONST_UINT8(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) \ (vector unsigned char) (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) #else #define VECCONST_UINT8(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) \ (vector unsigned char) {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p} #endif #else #define idppc_altivec 0 #endif #else #define idppc 0 #define idppc_altivec 0 #endif #endif #ifndef __ASM_I386__ // don't include the C bits if included from qasm.h // for windows fastcall option #define QDECL //================================================================= WIN32 === #ifdef _WIN32 #undef QDECL #define QDECL __cdecl #if defined( _MSC_VER ) #define OS_STRING "win_msvc" #elif defined __MINGW32__ #define OS_STRING "win_mingw" #endif #define ID_INLINE __inline #define PATH_SEP '\\' #if defined( _M_IX86 ) || defined( __i386__ ) #define ARCH_STRING "x86" #elif defined _M_ALPHA #define ARCH_STRING "AXP" #endif #define Q3_LITTLE_ENDIAN #define DLL_EXT ".dll" #endif //============================================================== MAC OS X === #if defined(MACOS_X) || defined(__APPLE_CC__) // make sure this is defined, just for sanity's sake... #ifndef MACOS_X #define MACOS_X #endif #define OS_STRING "macosx" #define ID_INLINE inline #define PATH_SEP '/' #ifdef __ppc__ #define ARCH_STRING "ppc" #define Q3_BIG_ENDIAN #elif defined __i386__ #define ARCH_STRING "i386" #define Q3_LITTLE_ENDIAN #endif #define DLL_EXT ".dylib" #endif //================================================================= LINUX === #ifdef __linux__ #include <endian.h> #define OS_STRING "linux" #define ID_INLINE inline #define PATH_SEP '/' #if defined __i386__ #define ARCH_STRING "i386" #elif defined __x86_64__ #define ARCH_STRING "x86_64" #elif defined __powerpc64__ #define ARCH_STRING "ppc64" #elif defined __powerpc__ #define ARCH_STRING "ppc" #elif defined __s390__ #define ARCH_STRING "s390" #elif defined __s390x__ #define ARCH_STRING "s390x" #elif defined __ia64__ #define ARCH_STRING "ia64" #elif defined __alpha__ #define ARCH_STRING "alpha" #elif defined __sparc__ #define ARCH_STRING "sparc" #elif defined __arm__ #define ARCH_STRING "arm" #elif defined __cris__ #define ARCH_STRING "cris" #elif defined __hppa__ #define ARCH_STRING "hppa" #elif defined __mips__ #define ARCH_STRING "mips" #elif defined __sh__ #define ARCH_STRING "sh" #endif #if __FLOAT_WORD_ORDER == __BIG_ENDIAN #define Q3_BIG_ENDIAN #else #define Q3_LITTLE_ENDIAN #endif #define DLL_EXT ".so" #endif //=================================================================== BSD === #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) #include <sys/types.h> #include <machine/endian.h> #ifndef __BSD__ #define __BSD__ #endif #if defined(__FreeBSD__) #define OS_STRING "freebsd" #elif defined(__OpenBSD__) #define OS_STRING "openbsd" #elif defined(__NetBSD__) #define OS_STRING "netbsd" #endif #define ID_INLINE inline #define PATH_SEP '/' #ifdef __i386__ #define ARCH_STRING "i386" #elif defined __axp__ #define ARCH_STRING "alpha" #endif #if BYTE_ORDER == BIG_ENDIAN #define Q3_BIG_ENDIAN #else #define Q3_LITTLE_ENDIAN #endif #define DLL_EXT ".so" #endif //================================================================= SUNOS === #ifdef __sun #include <stdint.h> #include <sys/byteorder.h> #define OS_STRING "solaris" #define ID_INLINE inline #define PATH_SEP '/' #ifdef __i386__ #define ARCH_STRING "i386" #elif defined __sparc #define ARCH_STRING "sparc" #endif #if defined( _BIG_ENDIAN ) #define Q3_BIG_ENDIAN #elif defined( _LITTLE_ENDIAN ) #define Q3_LITTLE_ENDIAN #endif #define DLL_EXT ".so" #endif //================================================================== IRIX === #ifdef __sgi #define OS_STRING "irix" #define ID_INLINE __inline #define PATH_SEP '/' #define ARCH_STRING "mips" #define Q3_BIG_ENDIAN // SGI's MIPS are always big endian #define DLL_EXT ".so" #endif //================================================================== Q3VM === #ifdef Q3_VM #define OS_STRING "q3vm" #define ID_INLINE #define PATH_SEP '/' #define ARCH_STRING "bytecode" #define DLL_EXT ".qvm" #endif //=========================================================================== //catch missing defines in above blocks #if !defined( OS_STRING ) #error "Operating system not supported" #endif #if !defined( ARCH_STRING ) #error "Architecture not supported" #endif #ifndef ID_INLINE #error "ID_INLINE not defined" #endif #ifndef PATH_SEP #error "PATH_SEP not defined" #endif #ifndef DLL_EXT #error "DLL_EXT not defined" #endif //endianness short ShortSwap (short l); int LongSwap (int l); float FloatSwap (const float *f); #if defined( Q3_BIG_ENDIAN ) && defined( Q3_LITTLE_ENDIAN ) #error "Endianness defined as both big and little" #elif defined( Q3_BIG_ENDIAN ) #define LittleShort(x) ShortSwap(x) #define LittleLong(x) LongSwap(x) #define LittleFloat(x) FloatSwap(&x) #define BigShort #define BigLong #define BigFloat #elif defined( Q3_LITTLE_ENDIAN ) #define LittleShort #define LittleLong #define LittleFloat #define BigShort(x) ShortSwap(x) #define BigLong(x) LongSwap(x) #define BigFloat(x) FloatSwap(&x) #elif defined( Q3_VM ) #define LittleShort #define LittleLong #define LittleFloat #define BigShort #define BigLong #define BigFloat #else #error "Endianness not defined" #endif //platform string #ifdef NDEBUG #define PLATFORM_STRING OS_STRING "-" ARCH_STRING #else #define PLATFORM_STRING OS_STRING "-" ARCH_STRING "-debug" #endif #endif #endif
-
Was genau sagt der Compiler dazu?
Ich würde mir mal die Stellen mit dem X86 bei WIN32 mal ansehen. Da sollten 64 daraus gemacht werden, ungefähr so (verlass dich aber nicht 100% darauf):
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. This file is part of Quake III Arena source code. Quake III Arena source code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Quake III Arena source code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Quake III Arena source code; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA =========================================================================== */ #ifndef __Q_PLATFORM_H #define __Q_PLATFORM_H // this is for determining if we have an asm version of a C function #ifdef Q3_VM #define id386 0 #define idppc 0 #define idppc_altivec 0 #else #if (defined _M_IX86 || defined __i386__) && !defined(C_ONLY) #define id386 1 #else #define id386 0 #endif //////////////////////////////////////////////////////////////////////////////// #ifdef _M_X64 #define id64 1 #else #define id64 0 #endif //////////////////////////////////////////////////////////////////////////////// #if (defined(powerc) || defined(powerpc) || defined(ppc) || \ defined(__ppc) || defined(__ppc__)) && !defined(C_ONLY) #define idppc 1 #if defined(__VEC__) #define idppc_altivec 1 #ifdef MACOS_X // Apple's GCC does this differently than the FSF. #define VECCONST_UINT8(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) \ (vector unsigned char) (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) #else #define VECCONST_UINT8(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) \ (vector unsigned char) {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p} #endif #else #define idppc_altivec 0 #endif #else #define idppc 0 #define idppc_altivec 0 #endif #endif #ifndef __ASM_I386__ // don't include the C bits if included from qasm.h // for windows fastcall option #define QDECL //================================================================= WIN32 === #ifdef _WIN32 #undef QDECL #define QDECL __cdecl #if defined( _MSC_VER ) #define OS_STRING "win_msvc" #elif defined __MINGW32__ #define OS_STRING "win_mingw" #endif #define ID_INLINE __inline #define PATH_SEP '\\' #if defined( _M_IX86 ) || defined( __i386__ ) #define ARCH_STRING "x86" #elif defined _M_ALPHA #define ARCH_STRING "AXP" #endif //////////////////////////////////////////////////////////////////////////////// #ifdef _M_X64 #define ARCH_STRING "x64" #endif //////////////////////////////////////////////////////////////////////////////// #define Q3_LITTLE_ENDIAN #define DLL_EXT ".dll" #endif //============================================================== MAC OS X === #if defined(MACOS_X) || defined(__APPLE_CC__) // make sure this is defined, just for sanity's sake... #ifndef MACOS_X #define MACOS_X #endif #define OS_STRING "macosx" #define ID_INLINE inline #define PATH_SEP '/' #ifdef __ppc__ #define ARCH_STRING "ppc" #define Q3_BIG_ENDIAN #elif defined __i386__ #define ARCH_STRING "i386" #define Q3_LITTLE_ENDIAN #endif #define DLL_EXT ".dylib" #endif //================================================================= LINUX === #ifdef __linux__ #include <endian.h> #define OS_STRING "linux" #define ID_INLINE inline #define PATH_SEP '/' #if defined __i386__ #define ARCH_STRING "i386" #elif defined __x86_64__ #define ARCH_STRING "x86_64" #elif defined __powerpc64__ #define ARCH_STRING "ppc64" #elif defined __powerpc__ #define ARCH_STRING "ppc" #elif defined __s390__ #define ARCH_STRING "s390" #elif defined __s390x__ #define ARCH_STRING "s390x" #elif defined __ia64__ #define ARCH_STRING "ia64" #elif defined __alpha__ #define ARCH_STRING "alpha" #elif defined __sparc__ #define ARCH_STRING "sparc" #elif defined __arm__ #define ARCH_STRING "arm" #elif defined __cris__ #define ARCH_STRING "cris" #elif defined __hppa__ #define ARCH_STRING "hppa" #elif defined __mips__ #define ARCH_STRING "mips" #elif defined __sh__ #define ARCH_STRING "sh" #endif #if __FLOAT_WORD_ORDER == __BIG_ENDIAN #define Q3_BIG_ENDIAN #else #define Q3_LITTLE_ENDIAN #endif #define DLL_EXT ".so" #endif //=================================================================== BSD === #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) #include <sys/types.h> #include <machine/endian.h> #ifndef __BSD__ #define __BSD__ #endif #if defined(__FreeBSD__) #define OS_STRING "freebsd" #elif defined(__OpenBSD__) #define OS_STRING "openbsd" #elif defined(__NetBSD__) #define OS_STRING "netbsd" #endif #define ID_INLINE inline #define PATH_SEP '/' #ifdef __i386__ #define ARCH_STRING "i386" #elif defined __axp__ #define ARCH_STRING "alpha" #endif #if BYTE_ORDER == BIG_ENDIAN #define Q3_BIG_ENDIAN #else #define Q3_LITTLE_ENDIAN #endif #define DLL_EXT ".so" #endif //================================================================= SUNOS === #ifdef __sun #include <stdint.h> #include <sys/byteorder.h> #define OS_STRING "solaris" #define ID_INLINE inline #define PATH_SEP '/' #ifdef __i386__ #define ARCH_STRING "i386" #elif defined __sparc #define ARCH_STRING "sparc" #endif #if defined( _BIG_ENDIAN ) #define Q3_BIG_ENDIAN #elif defined( _LITTLE_ENDIAN ) #define Q3_LITTLE_ENDIAN #endif #define DLL_EXT ".so" #endif //================================================================== IRIX === #ifdef __sgi #define OS_STRING "irix" #define ID_INLINE __inline #define PATH_SEP '/' #define ARCH_STRING "mips" #define Q3_BIG_ENDIAN // SGI's MIPS are always big endian #define DLL_EXT ".so" #endif //================================================================== Q3VM === #ifdef Q3_VM #define OS_STRING "q3vm" #define ID_INLINE #define PATH_SEP '/' #define ARCH_STRING "bytecode" #define DLL_EXT ".qvm" #endif //=========================================================================== //catch missing defines in above blocks #if !defined( OS_STRING ) #error "Operating system not supported" #endif #if !defined( ARCH_STRING ) #error "Architecture not supported" #endif #ifndef ID_INLINE #error "ID_INLINE not defined" #endif #ifndef PATH_SEP #error "PATH_SEP not defined" #endif #ifndef DLL_EXT #error "DLL_EXT not defined" #endif //endianness short ShortSwap (short l); int LongSwap (int l); float FloatSwap (const float *f); #if defined( Q3_BIG_ENDIAN ) && defined( Q3_LITTLE_ENDIAN ) #error "Endianness defined as both big and little" #elif defined( Q3_BIG_ENDIAN ) #define LittleShort(x) ShortSwap(x) #define LittleLong(x) LongSwap(x) #define LittleFloat(x) FloatSwap(&x) #define BigShort #define BigLong #define BigFloat #elif defined( Q3_LITTLE_ENDIAN ) #define LittleShort #define LittleLong #define LittleFloat #define BigShort(x) ShortSwap(x) #define BigLong(x) LongSwap(x) #define BigFloat(x) FloatSwap(&x) #elif defined( Q3_VM ) #define LittleShort #define LittleLong #define LittleFloat #define BigShort #define BigLong #define BigFloat #else #error "Endianness not defined" #endif //platform string #ifdef NDEBUG #define PLATFORM_STRING OS_STRING "-" ARCH_STRING #else #define PLATFORM_STRING OS_STRING "-" ARCH_STRING "-debug" #endif #endif #endif
-
das sagt er dazu:
1>c:\ioquake3\code\qcommon\q_platform.h(... : fatal error C1189: #error : "Architecture not supported"
hmm einfach 32 durch 64 ersetzen? ich weis nicht... und was ist mit den i386 und x86 zeichen durch was soll ich die ersetzen? die symboliesieren doch auch 32-bit...
-
Probier mal meine Version.
Wenn du eine X64 Architektur hast (dann ist _M_X64 definiert), sollte auch ARCH_STRING definiert sein, und das Problem behoben.
-
Blaze schrieb:
Probier mal meine Version.
Wenn du eine X64 Architektur hast (dann ist _M_X64 definiert), sollte auch ARCH_STRING definiert sein, und das Problem behoben.ahhh guut das problem mit der archiketur ist jetzt wirklich weg danke
nun hab ich anderes problem unzwar die anderen errors.. ich hoffe das mir da auch jemand helfen kann
1>------ Rebuild All started: Project: quake3, Configuration: Release x64 ------ 1>Deleting intermediate and output files for project 'quake3', configuration 'Release|x64' 1>Compiling... 1>tr_world.c 1>tr_surface.c 1>tr_sky.c 1>tr_shadows.c 1>tr_shader.c 1>tr_shade_calc.c 1>..\..\code\renderer\tr_shade_calc.c(302) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\renderer\tr_shade_calc.c(518) : warning C4389: '==' : signed/unsigned mismatch 1>..\..\code\renderer\tr_shade_calc.c(518) : warning C4389: '==' : signed/unsigned mismatch 1>tr_shade.c 1>..\..\code\renderer\tr_shade.c(93) : warning C4389: '==' : signed/unsigned mismatch 1>..\..\code\renderer\tr_shade.c(93) : warning C4389: '==' : signed/unsigned mismatch 1>..\..\code\renderer\tr_shade.c(121) : warning C4389: '==' : signed/unsigned mismatch 1>..\..\code\renderer\tr_shade.c(121) : warning C4389: '==' : signed/unsigned mismatch 1>tr_scene.c 1>tr_noise.c 1>tr_model.c 1>..\..\code\renderer\tr_model.c(354) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\renderer\tr_model.c(800) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>tr_mesh.c 1>tr_marks.c 1>tr_main.c 1>tr_light.c 1>tr_init.c 1>tr_image_tga.c 1>..\..\code\renderer\tr_image_tga.c(231) : warning C4389: '==' : signed/unsigned mismatch 1>..\..\code\renderer\tr_image_tga.c(271) : warning C4389: '==' : signed/unsigned mismatch 1>tr_image_png.c 1>..\..\code\renderer\tr_image_png.c(530) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(552) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(575) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(612) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(625) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(645) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(679) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(686) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(717) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(729) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(760) : warning C4245: 'return' : conversion from 'int' to 'uint32_t', signed/unsigned mismatch 1>..\..\code\renderer\tr_image_png.c(2365) : warning C4245: 'function' : conversion from 'int' to 'unsigned int', signed/unsigned mismatch 1>tr_image_pcx.c 1>..\..\code\renderer\tr_image_pcx.c(48) : warning C4200: nonstandard extension used : zero-sized array in struct/union 1>..\..\code\renderer\tr_image_pcx.c(142) : warning C4306: 'type cast' : conversion from 'int' to 'byte *' of greater size 1>tr_image_jpg.c 1>..\..\code\renderer\tr_image_jpg.c(288) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>tr_image_bmp.c 1>..\..\code\renderer\tr_image_bmp.c(133) : warning C4389: '!=' : signed/unsigned mismatch 1>..\..\code\renderer\tr_image_bmp.c(165) : warning C4389: '!=' : signed/unsigned mismatch 1>Generating Code... 1>Compiling... 1>tr_image.c 1>tr_font.c 1>tr_flares.c 1>tr_curve.c 1>tr_cmds.c 1>tr_bsp.c 1>..\..\code\renderer\tr_bsp.c(334) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\renderer\tr_bsp.c(1738) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\renderer\tr_bsp.c(1752) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 1>tr_backend.c 1>..\..\code\renderer\tr_backend.c(550) : warning C4389: '==' : signed/unsigned mismatch 1>tr_animation.c 1>..\..\code\renderer\tr_animation.c(89) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>l_struct.c 1>..\..\code\botlib\l_struct.c(350) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>l_script.c 1>..\..\code\botlib\l_script.c(800) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\l_script.c(1268) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>l_precomp.c 1>..\..\code\botlib\l_precomp.c(686) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\l_precomp.c(733) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\l_precomp.c(748) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\l_precomp.c(762) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\l_precomp.c(1222) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\l_precomp.c(1330) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\l_precomp.c(1458) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>l_memory.c 1>l_log.c 1>l_libvar.c 1>..\..\code\botlib\l_libvar.c(89) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\l_libvar.c(198) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\l_libvar.c(253) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>l_crc.c 1>be_interface.c 1>be_ea.c 1>be_ai_weight.c 1>..\..\code\botlib\be_ai_weight.c(348) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>be_ai_weap.c 1>be_ai_move.c 1>Generating Code... 1>c:\ioquake3\code\renderer\tr_cmds.c(417) : warning C4706: assignment within conditional expression 1>c:\ioquake3\code\renderer\tr_cmds.c(450) : warning C4706: assignment within conditional expression 1>c:\ioquake3\code\renderer\tr_cmds.c(453) : warning C4706: assignment within conditional expression 1>c:\ioquake3\code\renderer\tr_cmds.c(460) : warning C4706: assignment within conditional expression 1>c:\ioquake3\code\renderer\tr_cmds.c(465) : warning C4706: assignment within conditional expression 1>c:\ioquake3\code\renderer\tr_cmds.c(479) : warning C4706: assignment within conditional expression 1>Compiling... 1>be_ai_goal.c 1>be_ai_gen.c 1>be_ai_chat.c 1>..\..\code\botlib\be_ai_chat.c(483) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(512) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(707) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(1006) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(1037) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(1228) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(1444) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(1577) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(1934) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(1947) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(1981) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2155) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2344) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2371) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2544) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2545) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2550) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2551) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2556) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2557) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2562) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2563) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2568) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2569) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2574) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2575) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2580) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2581) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2586) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2587) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2723) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2727) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2728) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2733) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2734) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2739) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2740) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2745) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2746) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2751) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2752) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2757) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2758) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2763) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2764) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2769) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2770) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data 1>..\..\code\botlib\be_ai_chat.c(2802) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data 1>be_ai_char.c 1>..\..\code\botlib\be_ai_char.c(201) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\be_ai_char.c(250) : warning C4389: '==' : signed/unsigned mismatch 1>..\..\code\botlib\be_ai_char.c(305) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\be_ai_char.c(556) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>be_aas_sample.c 1>be_aas_routealt.c 1>be_aas_route.c 1>be_aas_reach.c 1>be_aas_optimize.c 1>be_aas_move.c 1>be_aas_main.c 1>..\..\code\botlib\be_aas_main.c(151) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>be_aas_file.c 1>be_aas_entity.c 1>be_aas_debug.c 1>be_aas_cluster.c 1>be_aas_bspq3.c 1>..\..\code\botlib\be_aas_bspq3.c(422) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\be_aas_bspq3.c(431) : warning C4267: 'function' : conversion from 'size_t' to 'unsigned long', possible loss of data 1>..\..\code\botlib\be_aas_bspq3.c(481) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data 1>jutils.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\code\jpeg-6\jutils.c': No such file or directory 1>jmemnobs.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\code\jpeg-6\jmemnobs.c': No such file or directory 1>jmemmgr.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\code\jpeg-6\jmemmgr.c': No such file or directory 1>jidctflt.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\code\jpeg-6\jidctflt.c': No such file or directory 1>Generating Code... [b]1>c:\ioquake3\code\botlib\be_aas_reach.c(1602) : fatal error C1001: An internal error has occurred in the compiler. 1>(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c[0x667F0C02:0x00000028]', line 182) 1> To work around this problem, try simplifying or changing the program near the locations listed above. 1>Please choose the Technical Support command on the Visual C++ 1> Help menu, or open the Technical Support help file for more information[/b] 1>Build log was saved at "file://c:\ioquake3\misc\msvc\x64\Release\BuildLog.htm" 1>quake3 - 5 error(s), 109 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
der letzte error (fettgedruckt) hatte mich am meisten geärgert weil ein optimitaions compiler oder so abgestürzt ist
-
Also die ersten 172 Zeilen sind nur Warnungen.
Entweder du entferst sie per #pragma warning(disable, ...)
oder du siehst nach und castest per Hand: Bei Vergleichen zu signed-Variante, bei Zuordnungen zum Typ, der es annehmen soll.
Bei size_z musst du aufpassen, denn das ist bei dir 64 Bit groß, int nur 32.Zu den Errors: Mit den jpeg-Zeugs, fehlen dir entwerder ein paar Datein, oder die Pfade sind einfach nur falsch.
Der Compiler-Error ist entweder nur ein ganz normaler Absturz (passiert beim Linker in der EE ständig), oder falsche Einstellungen, oder dummer Code, oder wirlich ein richtiger Fehler (bitte an MS wenden).Beseitige aber erstmal die Warnungen.
-
gut jetzt sieht das alles nurnoch so aus. da bin ich ja schon ein ganzes schritt weiter
danke mal an unseren BLAZE
ich werde eine lösung finden bzw die dateien die fehlen oder nicht richtig verlinkt sind finden und dann wieder hier rein posten bis bald.
1>------ Rebuild All started: Project: quake3, Configuration: Release x64 ------ 1>Deleting intermediate and output files for project 'quake3', configuration 'Release|x64' 1>Compiling... 1>tr_world.c 1>tr_surface.c 1>tr_sky.c 1>tr_shadows.c 1>tr_shader.c 1>tr_shade_calc.c 1>tr_shade.c 1>tr_scene.c 1>tr_noise.c 1>tr_model.c 1>tr_mesh.c 1>tr_marks.c 1>tr_main.c 1>tr_light.c 1>tr_init.c 1>tr_image_tga.c 1>tr_image_png.c 1>tr_image_pcx.c 1>tr_image_jpg.c 1>tr_image_bmp.c 1>Generating Code... 1>Compiling... 1>tr_image.c 1>tr_font.c 1>tr_flares.c 1>tr_curve.c 1>tr_cmds.c 1>tr_bsp.c 1>tr_backend.c 1>tr_animation.c 1>l_struct.c 1>l_script.c 1>l_precomp.c 1>l_memory.c 1>l_log.c 1>l_libvar.c 1>l_crc.c 1>be_interface.c 1>be_ea.c 1>be_ai_weight.c 1>be_ai_weap.c 1>be_ai_move.c 1>Generating Code... 1>Compiling... 1>be_ai_goal.c 1>be_ai_gen.c 1>be_ai_chat.c 1>be_ai_char.c 1>be_aas_sample.c 1>be_aas_routealt.c 1>be_aas_route.c 1>be_aas_reach.c 1>be_aas_optimize.c 1>be_aas_move.c 1>be_aas_main.c 1>be_aas_file.c 1>be_aas_entity.c 1>be_aas_debug.c 1>be_aas_cluster.c 1>be_aas_bspq3.c 1>jutils.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\code\jpeg-6\jutils.c': No such file or directory 1>jmemnobs.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\code\jpeg-6\jmemnobs.c': No such file or directory 1>jmemmgr.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\code\jpeg-6\jmemmgr.c': No such file or directory 1>jidctflt.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\code\jpeg-6\jidctflt.c': No such file or directory 1>Generating Code... 1>c:\ioquake3\code\botlib\be_aas_reach.c(1602) : fatal error C1001: An internal error has occurred in the compiler. 1>(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c[0x66C70C02:0x00000028]', line 182) 1> To work around this problem, try simplifying or changing the program near the locations listed above. 1>Please choose the Technical Support command on the Visual C++ 1> Help menu, or open the Technical Support help file for more information 1>Build log was saved at "file://c:\ioquake3\misc\msvc\x64\Release\BuildLog.htm" 1>quake3 - 5 error(s), 0 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
-
so habs jezze unzwar musste ich nur einen ordner namen verändern deswegen konnten die dateien nicht gefunden werden. nunja jetzt bleibt mir nurnoch das der compiler am ende abstürzt
es erscheint ein windows fenster wo steht das das programm windows C/C++ Compiler funktioniert nicht mehr oder so ähnlich.
1>------ Rebuild All started: Project: quake3, Configuration: Release x64 ------ 1>Deleting intermediate and output files for project 'quake3', configuration 'Release|x64' 1>Compiling... 1>tr_world.c 1>tr_surface.c 1>tr_sky.c 1>tr_shadows.c 1>tr_shader.c 1>tr_shade_calc.c 1>tr_shade.c 1>tr_scene.c 1>tr_noise.c 1>tr_model.c 1>tr_mesh.c 1>tr_marks.c 1>tr_main.c 1>tr_light.c 1>tr_init.c 1>tr_image_tga.c 1>tr_image_png.c 1>tr_image_pcx.c 1>tr_image_jpg.c 1>tr_image_bmp.c 1>Generating Code... 1>Compiling... 1>tr_image.c 1>tr_font.c 1>tr_flares.c 1>tr_curve.c 1>tr_cmds.c 1>tr_bsp.c 1>tr_backend.c 1>tr_animation.c 1>l_struct.c 1>l_script.c 1>l_precomp.c 1>l_memory.c 1>l_log.c 1>l_libvar.c 1>l_crc.c 1>be_interface.c 1>be_ea.c 1>be_ai_weight.c 1>be_ai_weap.c 1>be_ai_move.c 1>Generating Code... 1>Compiling... 1>be_ai_goal.c 1>be_ai_gen.c 1>be_ai_chat.c 1>be_ai_char.c 1>be_aas_sample.c 1>be_aas_routealt.c 1>be_aas_route.c 1>be_aas_reach.c 1>be_aas_optimize.c 1>be_aas_move.c 1>be_aas_main.c 1>be_aas_file.c 1>be_aas_entity.c 1>be_aas_debug.c 1>be_aas_cluster.c 1>be_aas_bspq3.c 1>jutils.c 1>jmemnobs.c 1>jmemmgr.c 1>jidctflt.c 1>Generating Code... 1>c:\ioquake3\code\botlib\be_aas_reach.c(1602) : fatal error C1001: An internal error has occurred in the compiler. 1>(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c[0x66EE0C02:0x00000028]', line 182) 1> To work around this problem, try simplifying or changing the program near the locations listed above. 1>Please choose the Technical Support command on the Visual C++ 1> Help menu, or open the Technical Support help file for more information 1>Build log was saved at "file://c:\ioquake3\misc\msvc\x64\Release\BuildLog.htm" 1>quake3 - 1 error(s), 0 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
-
Hast du schon das SP1 für VC++ installiert?
Ansonsten melde dich mit deinem Compilerproblem bitte an den Microsoft Support.
-
Blaze schrieb:
Hast du schon das SP1 für VC++ installiert?
Ansonsten melde dich mit deinem Compilerproblem bitte an den Microsoft Support.japp es ist mir auf stand Visual Studio Professional 2008 SP1...
nur mir fällt grad auf das bei be_aas_reach.c dieses problem erst auftaucht wenn ich mir den compile verlauf so anschaue... vllt sollt ich den code posten davon??
naja mal schauen was microsoft support zuerst dazu sagt^^