Article View: csu.cs.200
Article #190Help with aCC compiling errors
From: spasm
Date: Wed, 30 Sep 1998 00:00
Date: Wed, 30 Sep 1998 00:00
37 lines
1804 bytes
1804 bytes
Using the old CC command to compile my assignment #3 program, I recieved
no errors and achieved the desired output. Using the new aCC command to
compile my program, I get the following errors:
1. Error (future) 355: "Main3.C", line 46 # Function 'main' must return
type 'int'.
void main()
^^^^
2. Error 409: "Main3.C", line 128 # Cannot convert a non-lvalue to a
pointer.
if(strcmp((LIST_Get(list,j)).name,(LIST_Get(list,index)).name) >
0) ^^^^^^^^^^^^^^^^^^^^^^
3. Error 409: "Main3.C", line 128 # Cannot convert a non-lvalue to a
pointer.
if(strcmp((LIST_Get(list,j)).name,(LIST_Get(list,index)).name) >
0)
^^^^^^^^^^^^^^^^^^^^^^^^^^
4. Warning: 1 future errors were detected and ignored. Add a '+p'
option to
detect and fix them before they become fatal errors in a future release.
Behavio
r of this ill-formed program is not guaranteed to match that of a
well-formed pr
ogram
After adding the '+p' option, error 355 is gone. The file Main3.C is
supposed to compile, so I'm guessing that there is something in my SLL.h
and ArrD.h files that is causing the problem. I get the same errors
including either SLL.h or ArrD.h in Main3.C. Any ideas as to what could
be causing this.
Thanx,
Chris Carlson
Technical Details
Message-ID:
<3612620F.C024CCAE@holly.colostate.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 127144,ebc15a71af1aa21f,start X-Google-Attributes: gid127144,public From: spasm <spasm@holly.colostate.edu> Subject: Help with aCC compiling errors Date: 1998/09/30 Message-ID: <3612620F.C024CCAE@holly.colostate.edu> X-Deja-AN: 396586869 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Colorado State University, Fort Collins, CO 80523 Mime-Version: 1.0 Newsgroups: csu.cs.200