S
spinoza1111
spinoza1111wrote:
<snip>
It doesn't compile here. I'm using gcc 4.3.3 on Ubuntu 9.04.
$ gcc -ospinoza1111spinoza1111.cspinoza1111.c:27:16: error: invalid suffix "D" on integer constantspinoza1111.c: In function ‘replace’:spinoza1111.c:27: error: expected ‘;’ before ‘strMaster’spinoza1111.c:28:27: error: invalid suffix "D" on integer constantspinoza1111.c:28: error: expected ‘;’ before numeric constantspinoza1111.c:29:19: error: invalid suffix "D" on integer constantspinoza1111.c:29: error: expected ‘;’ before numeric constantspinoza1111.c:32:20: error: invalid suffix "D" on integer constantspinoza1111.c:32: error: expected ‘;’ before ‘ptrIndex1’spinoza1111.c:34:40: error: invalid suffix "D" on integer constantspinoza1111.c:36:24: error: invalid suffix "D" on integer constantspinoza1111.c:36: error: expected ‘;’ before ‘strTarget’spinoza1111.c:36:49: error: invalid suffix "D" on integer constantspinoza1111.c:37:53: error: invalid suffix "D" on integer constantspinoza1111.c:37:56: error: invalid suffix "D" on integer constantspinoza1111.c:41:37: error: invalid suffix "D" on integer constantspinoza1111.c:42: error: expected ‘)’ before ‘malloc’spinoza1111.c:44:43: error: invalid suffix "D" on integer constantspinoza1111.c:44: error: expected ‘;’ before ‘ptrIndex0’spinoza1111.c:45:49: error: invalid suffix "D" on integer constantspinoza1111.c:46: error: expected ‘;’ before ‘ptrIndex1’spinoza1111.c:47:48: error: invalid suffix "D" on integer constantspinoza1111.c:48: error: expected ‘;’ before ‘!’ tokenspinoza1111.c:49:28: error: invalid suffix "D" on integer constantspinoza1111.c:49: error: expected ‘;’ before ‘ptrSegmentStruct’spinoza1111.c:55:40: error: invalid suffix "D" on integer constantspinoza1111.c:55: error: expected ‘;’ before numeric constantspinoza1111.c:56:40: error: invalid suffix "D" on integer constantspinoza1111.c:56: error: expected ‘)’ before numeric constantspinoza1111.c:57:48: error: invalid suffix "D" on integer constantspinoza1111.c:57: error: expected ‘;’ before ‘ptrSegmentStruct’spinoza1111.c:59:41: error: invalid suffix "D" on integer constantspinoza1111.c:59: error: expected ‘;’ before ‘ptrSegmentStruct’spinoza1111.c:60:35: error: invalid suffix "D" on integer constantspinoza1111.c:60: error: expected ‘;’ before ‘ptrSegmentStruct’spinoza1111.c:62:20: error: invalid suffix "D" on integer constantspinoza1111.c:62: error: expected ‘;’ before ‘ptrIndex3’spinoza1111.c:64:24: error: invalid suffix "D" on integer constantspinoza1111.c:64: error: expected ‘)’ before ‘malloc’spinoza1111.c:65:13: error: invalid suffix "D" on integer constantspinoza1111.c:65: error: expected ‘;’ before ‘strNewStart’spinoza1111.c:66:23: error: invalid suffix "D" on integer constantspinoza1111.c:66: error: expected ‘;’ before ‘ptrSegmentStructStarts’spinoza1111.c:69:25: error: invalid suffix "D" on integer constantspinoza1111.c:69: error: expected ‘;’ before ‘ptrSegmentStruct’spinoza1111.c:70:24: error: invalid suffix "D" on integer constantspinoza1111.c:73:23: error: invalid suffix "D" on integer constantspinoza1111.c:75:29: error: invalid suffix "D" on integer constantspinoza1111.c:75: error: expected ‘;’ before ‘strReplacement’spinoza1111.c:78:27: error: invalid suffix "D" on integer constantspinoza1111.c:79:27: error: invalid suffix "D" on integer constantspinoza1111.c:79: error: expected ‘;’ before ‘ptrSegmentStruct’spinoza1111.c:81:14: error: invalid suffix "D" on integer constantspinoza1111.c:81: error: expected ‘;’ before '\x0'
How did it compile for you? Which compiler and what options did you
use?
Microsoft C++ (and C) .Net express, with a blank project and a
filetype of C to enforce C.
I really should get GCC...although some of the regs diss it.
I will take a look at your error list.