Thread View: comp.windows.interviews
4 messages
4 total messages
Started by leo%hkueee.hku.hk
Wed, 16 Dec 1992 19:29
RE: Re: 3.1 is now available
Author: leo%hkueee.hku.hk
Date: Wed, 16 Dec 1992 19:29
Date: Wed, 16 Dec 1992 19:29
73 lines
2603 bytes
2603 bytes
franklin@gator.sps.mot.com writes:
->
->>I have down loaded IV 3.1 from sgi.com. Could not compile on SUN4 !! I may b
e
->missing
->>
->>something or doing something wrong.
->>
->>Has any one been able to compile 3.1 on SUN4? Like to hear from you.
->>
->>Thanks
->>
->>prasady@hou.amoco.com
->
->I can get everything to build except ibuild, iclass and idemo.
->Platform: Sparc II
->OS: Sun)S 4.1.2
->Compiler: Sun C++ 2.0FCS/4.0 (09/29/89)
->
->**************************** This is what happens ****************************
**
->**
[Error messages deleted]
->Any help would be appreciated
->
->--Malcolm
->
->
->--
->------------------------------------------------------------------------------
--
->Malcolm L. Franklin email: Malcolm_Franklin@chdasic.sps.mot.c
om
->Motorola ASIC CAD Phone: (602) 821-4371
->CAE Systems Fax: (602) 821-4963
->------------------------------------------------------------------------------
--
->
Our platform configuration:
Sparc 2, SunOS 4.1.1, AT&T Cfront 3.0.1, IV 3.1
We encountered similar problems in compiling iclass.c when lots of errors
appeared complaining the header file iv/src/include/IV-2_6/InterViews/box.h.
The words "major" and "minor" seem to be the culprits. After changing these
words to others, the compilation proceeds. Here is what we have done to box.h
$ diff box.h box.h.orig
53c53
< virtual void GetActual(int& major_int, int& minor_int);
---
> virtual void GetActual(int& major, int& minor);
57c57
< Interactor*, Coord major_int, int len, int thick, int minor_int
---
> Interactor*, Coord major, int len, int thick, int minor
89c89
< void GetActual(int& major_int, int& minor_int);
---
> void GetActual(int& major, int& minor);
115c115
< void GetActual(int& major_int, int& minor_int);
---
> void GetActual(int& major, int& minor);
BTW, could any C/C++ guru be kind enough to let me know whether "major" and
"minor" are undocumented reserved words.
leo@hkueee.hku.hk
Leo Chow
Dept of Electrical and Electronic Engg
University of Hong Kong
Re: Re: 3.1 is now available
Author: Yalamanchi Prasad
Date: Wed, 16 Dec 1992 14:49
Date: Wed, 16 Dec 1992 14:49
98 lines
3729 bytes
3729 bytes
In article AA20677@hkueee.hku.hk, leo%hkueee.hku.hk@FORSYTHE.STANFORD.EDU () writes: >franklin@gator.sps.mot.com writes: >-> >->>I have down loaded IV 3.1 from sgi.com. Could not compile on SUN4 !! I may b >e >->missing >->> >->>something or doing something wrong. >->> >->>Has any one been able to compile 3.1 on SUN4? Like to hear from you. >->> >->>Thanks >->> >->>prasady@hou.amoco.com >-> >->I can get everything to build except ibuild, iclass and idemo. >->Platform: Sparc II >->OS: Sun)S 4.1.2 >->Compiler: Sun C++ 2.0FCS/4.0 (09/29/89) >-> >->**************************** This is what happens **************************** >** >->** > [Error messages deleted] > >->Any help would be appreciated >-> >->--Malcolm >-> >-> >->-- >->------------------------------------------------------------------------------ >-- >->Malcolm L. Franklin email: Malcolm_Franklin@chdasic.sps.mot.c >om >->Motorola ASIC CAD Phone: (602) 821-4371 >->CAE Systems Fax: (602) 821-4963 >->------------------------------------------------------------------------------ >-- >-> >Our platform configuration: >Sparc 2, SunOS 4.1.1, AT&T Cfront 3.0.1, IV 3.1 > >We encountered similar problems in compiling iclass.c when lots of errors >appeared complaining the header file iv/src/include/IV-2_6/InterViews/box.h. > >The words "major" and "minor" seem to be the culprits. After changing these >words to others, the compilation proceeds. Here is what we have done to box.h > >$ diff box.h box.h.orig >53c53 >< virtual void GetActual(int& major_int, int& minor_int); >--- >> virtual void GetActual(int& major, int& minor); >57c57 >< Interactor*, Coord major_int, int len, int thick, int minor_int >--- >> Interactor*, Coord major, int len, int thick, int minor >89c89 >< void GetActual(int& major_int, int& minor_int); >--- >> void GetActual(int& major, int& minor); >115c115 >< void GetActual(int& major_int, int& minor_int); >--- >> void GetActual(int& major, int& minor); > >BTW, could any C/C++ guru be kind enough to let me know whether "major" and >"minor" are undocumented reserved words. > >leo@hkueee.hku.hk >Leo Chow >Dept of Electrical and Electronic Engg >University of Hong Kong There is one more problem !!! I get the following errors compiling IV-3.1 on SUN4 with AT&T 2.0 CC : CC ../import.c: "../import.c", line 99: error: bad argument 1 type for fopen(): const char * ( char * expected) "../import.c", line 186: error: two initializers for ivCommand "../import.c", line 186: warning: ed not used "../import.c", line 292: error: bad argument 1 type for fopen(): const char * ( char * expected) "../import.c", line 327: error: bad argument 1 type for fopen(): const char * ( char * expected) "../import.c", line 376: error: bad argument 1 type for fopen(): const char * ( char * expected) 5 errors cc -c -I/sysprod2/lang/CC/sun4/incl -I../../../.././src/include -PIC *** Error code 1 make: Warning: Target `all' not remade because of errors Current working directory ........./iv3.1/iv/src/lib/Unidraw/SUN4 Appreciate any help. Thanks so far ! prasady@hou.amoco.com
Re: 3.1 is now available
Author: Helmut Muelner
Date: Wed, 16 Dec 1992 17:04
Date: Wed, 16 Dec 1992 17:04
24 lines
1522 bytes
1522 bytes
->BTW, could any C/C++ guru be kind enough to let me know whether "major" and
->"minor" are undocumented reserved words.
In Ultrix (4.2) there are the following macro definitions in sys/types.h:
/*
* Basic system types and major/minor device constructing/busting macros.
*/
/* major part of a device */
#define major(x) ((int)(((unsigned)(x)>>8)&0377))
/* minor part of a device */
#define minor(x) ((int)((x)&0377))
I remember changing this variable names in iv 3.0, but I forgot to post
an error report.
--
--
"I make no mistakes, Helmut Muelner Tp., I.P.,
only experiences." M\"ulner S.B., P.B,
Mülner m.l., H.D.,
M\x0FClner T.S., G.L.
hmuelner@iicm.tu-graz.ac.at (use (your) finger)
Re: 3.1 is now available
Author: Klamer Schutte
Date: Thu, 17 Dec 1992 10:03
Date: Thu, 17 Dec 1992 10:03
15 lines
1019 bytes
1019 bytes
In <9212161929.AA20677@hkueee.hku.hk> leo%hkueee.hku.hk@FORSYTHE.STANFORD.EDU writes: >BTW, could any C/C++ guru be kind enough to let me know whether "major" and >"minor" are undocumented reserved words. They >> should << not be reserved words. And you can remove them from the namespace by defining -D_POSIX_SOURCE. But doing so breaks <stdlib.h> ... (At least with Sun C++ 2.1) Klamer -- Klamer Schutte Tel: +31-53-892778 Fax: +31-53-340045 Faculty of electrical engineering -- University of Twente, The Netherlands preferred: klamer@mi.el.utwente.nl SMTP: klamer@utelmi01.el.utwente.nl
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads