Mu Zulik

Codewarrior Pro Tools 8.0

Discussion created by Mu Zulik on Aug 31, 2007
Latest reply on Sep 4, 2007 by Tom Thompson
Dear Reader,

I have installed Codewarrior 8 on Mac OS X 10.4.10 and I can not run the sample program that Codewarrior created when I chose to program in C stationary under Mach-O mode. These are the error messages that Codewarrior generated which I do not understand them at all. Would you please read them and tell me what needs to be done so the sample program can run, which just reads to output "Hello World". Thank you very much for your support.

Error   : Internal Mach-O Importer Error File 'ImportMachO.c' Line 1952 unsupported unknown reloc type
Project: cake, Target: Std C Console Debug, Source File: crt1.o

Error   : the file 'ppc/ansi.h' cannot be opened
(included from:
 size_t.h:16
 cstdio:17
 stdio.h:17
 HelloWorld.c:9)
size_t_mach.h line 11   #include <ppc/ansi.h>
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : ';' expected
(included from:
 cstdio:17
 stdio.h:17
 HelloWorld.c:9)
size_t.h line 28   typedef _MSL_SIZE_T_TYPE size_t;
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : illegal function definition
(included from:
 cstdio:26
 stdio.h:17
 HelloWorld.c:9)
file_struc.h line 105   typedef int  (* __io_proc)    (__file_handle file, unsigned char * buff, size_t * count, __idle_proc idle_proc);
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 29   _MSL_IMP_EXP_C size_t _MSL_CDECL  __fread(void *, size_t, size_t, FILE *);         /*- mm 001018 -*/
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 30   _MSL_IMP_EXP_C size_t _MSL_CDECL     __fwrite(const void *, size_t, size_t, FILE *);       /*- mm 001018 -*/
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 39   size_t MaxCharCount;
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 40   size_t CharsWritten;
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 41   } __OutStrCtrl;
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : illegal function definition
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 49   void * _MSL_CDECL __FileWrite(void *, const char *, size_t); /*- cc 020108 -*/  
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : illegal function definition
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 50   void * _MSL_CDECL __StringWrite(void *, const char *, size_t);  /*- cc 020108 -*/
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 66   size_t MaxCharCount;
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 67   size_t CharsWritten;
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 68   } __wOutStrCtrl;
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : illegal function definition
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 76   void * _MSL_CDECL __wFileWrite(void *, const wchar_t *, size_t); /*- cc 020108 -*/
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : illegal function definition
(included from:
 cstdio:32
 stdio.h:17
 HelloWorld.c:9)
stdio_api.h line 77   void * _MSL_CDECL __wStringWrite(void *, const wchar_t *, size_t); /*- cc 020108 -*/
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : illegal function definition
(included from:
 stdio.h:17
 HelloWorld.c:9)
cstdio line 42   _MSL_IMP_EXP_C int _MSL_CDECL   setvbuf(FILE *  , char * , int , size_t   );    /*- mf 990715 -*/
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : illegal function definition
(included from:
 stdio.h:17
 HelloWorld.c:9)
cstdio line 50   _MSL_IMP_EXP_C int _MSL_CDECL   snprintf(char * , size_t , const char * , ...);
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : illegal function definition
(included from:
 stdio.h:17
 HelloWorld.c:9)
cstdio line 58   _MSL_IMP_EXP_C int _MSL_CDECL   vsnprintf(char * s, size_t n, const char * format, va_list arg);
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 stdio.h:17
 HelloWorld.c:9)
cstdio line 66   _MSL_IMP_EXP_C size_t _MSL_CDECL     fread (void *, size_t memb_size, size_t num_memb, FILE *  );    /*- mf 990715 -*/
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : declaration syntax error
(included from:
 stdio.h:17
 HelloWorld.c:9)
cstdio line 67   _MSL_IMP_EXP_C size_t _MSL_CDECL     fwrite(const void *   , size_t memb_size, size_t num_memb, FILE *  ); /*- mf 990715 -*/
Project: cake, Target: Std C Console Debug, Source File: HelloWorld.c

Error   : the file 'ppc/ansi.h' cannot be opened
(included from:
 size_t.h:16
 console_OS_X.c:9)
size_t_mach.h line 11   #include <ppc/ansi.h>
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Error   : ';' expected
size_t.h line 28   typedef _MSL_SIZE_T_TYPE size_t;
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Warning : identifier 'int8_t' redeclared
(included from:
 stdint.h:21
 _endian.h:88
 endian.h:107
 endian.h:30
 types.h:75
 select.h:144
 unistd.h:483
 console_OS_X.c:11)
cstdint line 36   typedef signed char int8_t;
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Warning : identifier 'int16_t' redeclared
(included from:
 stdint.h:21
 _endian.h:88
 endian.h:107
 endian.h:30
 types.h:75
 select.h:144
 unistd.h:483
 console_OS_X.c:11)
cstdint line 37   typedef short int   int16_t;
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Error   : identifier 'int32_t' redeclared
was declared as: 'int'
now declared as: 'long'
(included from:
 stdint.h:21
 _endian.h:88
 endian.h:107
 endian.h:30
 types.h:75
 select.h:144
 unistd.h:483
 console_OS_X.c:11)
cstdint line 38   typedef long int    int32_t;
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Warning : identifier 'int64_t' redeclared
(included from:
 stdint.h:21
 _endian.h:88
 endian.h:107
 endian.h:30
 types.h:75
 select.h:144
 unistd.h:483
 console_OS_X.c:11)
cstdint line 41   typedef long long   int64_t;
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Error   : identifier 'intptr_t' redeclared
was declared as: 'long'
now declared as: 'int'
(included from:
 stdint.h:21
 _endian.h:88
 endian.h:107
 endian.h:30
 types.h:75
 select.h:144
 unistd.h:483
 console_OS_X.c:11)
cstdint line 99   typedef int32_t intptr_t;
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Warning : identifier 'uintptr_t' redeclared
(included from:
 stdint.h:21
 _endian.h:88
 endian.h:107
 endian.h:30
 types.h:75
 select.h:144
 unistd.h:483
 console_OS_X.c:11)
cstdint line 101   typedef uint32_t uintptr_t;
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Error   : the file 'ppc/ansi.h' cannot be opened
(included from:
 ctime:25
 time.h:17
 time.h:235
 select.h:148
 unistd.h:483
 console_OS_X.c:11)
time.mac.h line 36   #include <ppc/ansi.h>
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Error   : ';' expected
(included from:
 time.h:17
 time.h:235
 select.h:148
 unistd.h:483
 console_OS_X.c:11)
ctime line 54   typedef _MSL_CLOCK_T clock_t;
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c

Warning : identifier 'time_t' redeclared
(included from:
 time.h:17
 time.h:235
 select.h:148
 unistd.h:483
 console_OS_X.c:11)
ctime line 59   typedef long time_t;          /*- mm 000127 -*/
Project: cake, Target: Std C Console Debug, Source File: console_OS_X.c


Outcomes