linjk@vanburen.cs.unc.edu (Jin-Kun Lin) (06/18/91)
When I install iv, I got some warning and error messages that I can not understand well. Please help me if you know what goes wrong in my work. The first kind is warning of "access nested num type ... (anachronism)". I got many of them like the following: -- "../../../.././src/include/InterViews/canvas.h", line 114: warning: use ivCanva s:: to access nested enum type Location (anachronism) -- "../../../.././src/include/InterViews/color.h", line 75: warning: use ivColor:: to access nested typedef Intensity (anachronism) -- "../../../.././src/include/InterViews/sensor.h", line 50: warning: use ivEvent: : to access nested enum type Event_PointerButton (anachronism) ... The second type is errors of "no table entry for op =" . I got some of these. -- cc -c -O -pic -Dcplusplus_2_0 -I.. -I../../../.././src/include xwindow.c "../xwindow.c", line 200: compiler error: no table entry for op = -- "../stateviews.c", line 279: compiler error: no table entry for op = ... The third type is errors of " error: two different return value types ". I got quite a few of these: -- "/usr/local/include/CC/unistd.h", line 105: error: two different return value types for getegid(): int and gid_t -- "/usr/local/include/CC/unistd.h", line 106: error: two different return value types for geteuid(): int and uid_t ... The fourth type is for `delete[v]'. -- "../Application.c", line 59: error: v in `delete[v]' is redundant; use `delete[] instead (anachronism) ... The others are : -- "../idarrow.c", line 210: compiler error: illegal register pair freed I am not familiar with C++. (I am learning it too.) Forgive me if my problems are naive. Thanks!
linton@marktwain.rad.sgi.com (Mark Linton) (06/19/91)
In article <4442@borg.cs.unc.edu>, linjk@vanburen.cs.unc.edu (Jin-Kun Lin) writes: |> The first kind is warning of "access nested num type ... (anachronism)". |> I got many of them like the following: |> |> -- "../../../.././src/include/InterViews/canvas.h", line 114: warning: use |> ivCanva s:: to access nested enum type Location (anachronism) |> |> The second type is errors of "no table entry for op =" . I |> got some of these. |> -- cc -c -O -pic -Dcplusplus_2_0 -I.. -I../../../.././src/include |> xwindow.c "../xwindow.c", line 200: compiler error: no table entry |> for op = |> -- "../stateviews.c", line 279: compiler error: no table entry for op = |> ... |> |> The third type is errors of " error: two different return value types ". |> I got quite a few of these: |> -- "/usr/local/include/CC/unistd.h", line 105: error: two different |> return value types for getegid(): int and gid_t |> -- "/usr/local/include/CC/unistd.h", line 106: error: two different |> return value types for geteuid(): int and uid_t |> ... |> |> The fourth type is for `delete[v]'. |> -- "../Application.c", line 59: error: v in `delete[v]' is redundant; |> use `delete[] instead (anachronism) |> ... |> |> The others are : |> -- "../idarrow.c", line 210: compiler error: illegal register pair freed |> These are all compiler problems. The first looks like you are using cfront 2.1--if so you need to change the define in local.def to -Dcplusplus_2_1. The "different return values" is a mismatch between your system and C++ include files. The others look like compiler bugs. I suggest you contact someone local who knows about C++ and your system.