|
From: Teresa R. <tra...@ma...> - 2002-12-16 17:40:01
|
I opened a project that I had written with Visual C++ 6.0 which had no compiler errors in VC6, but in DevC++ there were about 24 compiler errors. The source code is written in C and not C++ but I selected the Compiler options to support ANSI C. Anyone have an idea as to what is going on here? |
|
From: Teresa R. <tra...@ma...> - 2002-12-16 17:51:53
|
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c: In function `main':
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:74: parse error
before `/'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c: At top level:
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:93: parse error
before `while'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:100: parse error
before string constant
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:100: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:101: parse error
before `('
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:103: warning:
parameter names (without types) in function declaration
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:103: conflicting
types for `err_neg'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:34: previous
declaration of `err_neg'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:103: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:105: parse error
before `if'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:117: parse error
before string constant
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:117: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:136: parse error
before string constant
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:136: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:161:
`withdrawals' undeclared here (not in a function)
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:161: `i'
undeclared here (not in a function)
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:161: initializer
element is not constant
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:161: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:162: parse error
before `}'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:166: parse error
before string constant
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:166: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:170: warning:
parameter names (without types) in function declaration
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:170: conflicting
types for `f_deposits'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:35: previous
declaration of `f_deposits'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:170: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:172: parse error
before string constant
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:172: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:174: warning:
parameter names (without types) in function declaration
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:174: conflicting
types for `f_withdrawals'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:36: previous
declaration of `f_withdrawals'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:174: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:176: parse error
before string constant
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:176: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:178: warning:
parameter names (without types) in function declaration
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:178: conflicting
types for `f_message'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:37: previous
declaration of `f_message'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:178: warning:
data definition has no type or storage class
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:180: parse error
before `return'
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:235: parse error
before string constant
c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:235: warning:
data definition has no type or storage class
|
|
From: Matthews <dem...@uw...> - 2002-12-17 01:24:42
|
My guess is that the project uses a keyword not defined in mingw, like
borland's "far" specifier.
At 12:51 PM 16/12/2002 -0500, Teresa Raymond wrote:
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c: In function
`main':
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:74: parse error
>before `/'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c: At top level:
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:93: parse error
>before `while'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:100: parse error
>before string constant
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:100: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:101: parse error
>before `('
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:103: warning:
>parameter names (without types) in function declaration
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:103: conflicting
>types for `err_neg'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:34: previous
>declaration of `err_neg'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:103: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:105: parse error
>before `if'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:117: parse error
>before string constant
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:117: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:136: parse error
>before string constant
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:136: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:161:
>`withdrawals' undeclared here (not in a function)
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:161: `i'
>undeclared here (not in a function)
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:161: initializer
>element is not constant
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:161: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:162: parse error
>before `}'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:166: parse error
>before string constant
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:166: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:170: warning:
>parameter names (without types) in function declaration
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:170: conflicting
>types for `f_deposits'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:35: previous
>declaration of `f_deposits'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:170: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:172: parse error
>before string constant
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:172: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:174: warning:
>parameter names (without types) in function declaration
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:174: conflicting
>types for `f_withdrawals'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:36: previous
>declaration of `f_withdrawals'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:174: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:176: parse error
>before string constant
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:176: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:178: warning:
>parameter names (without types) in function declaration
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:178: conflicting
>types for `f_message'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:37: previous
>declaration of `f_message'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:178: warning:
>data definition has no type or storage class
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:180: parse error
>before `return'
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:235: parse error
>before string constant
>c:\docume~1\owner\mydocu~1\c\week12~1\raymon~1\raymon~1.c:235: warning:
>data definition has no type or storage class
>
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:
>With Great Power, Comes Great Responsibility
>Learn to use your power at OSDN's High Performance Computing Channel
>http://hpc.devchannel.org/
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: <cg...@wo...> - 2002-12-17 17:11:37
|
You used C++ style comments? mingw generates millions errors if you use them in a C progam; you can maintain them if you add the -std=c99 option to the compiler (in mingw 2.0.0, based on gcc3.2,. If you use previous version, based on gcc 2.95.3-6 perhaps then you need change the comment style) Teresa Raymond wrote: > I opened a project that I had written with Visual C++ 6.0 which had no > compiler errors in VC6, but in DevC++ there were about 24 compiler > errors. The source code is written in C and not C++ but I selected > the Compiler options to support ANSI C. Anyone have an idea as to > what is going on here? > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility Learn to use your power > at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |