inkari@conan.hut.fi (Juha Inkari) (07/09/90)
I tryed to compile the compress for os/2 and noticed the following trouble : I have OS/2 1.20 (beta version) and MSC 5.10 installed ok, but the compiler complains the following: compress.c compress.c(350) : error C2065: 'SEG_NONSHARED' : undefined compress.c(368) : error C2065: 'SEG_NONSHARED' : undefined This piece of code seems to occure in three places in compress.c file: if ( DosAllocHuge(HIUSHORT(size), LOUSHORT(size), &sel, 0, SEG_NONSHARED) ) The definition SEG_NONSHARED seems to be the trouble because it is not defined anywhere ! I didnt found it from any of the header files which are installed with MSC 5.1 (I installed only the OS/2 version). How should I define SEG_NONSHARED and where it _should_ be defined ? -- /* Juha Inkari inkari@batgirl.hut.fi */
rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) (07/11/90)
This value is mentioned in the OS/2 docs from MS and defined in the headers which come with the SDK 1.1 and above. The headers from C 5.1 are 1.0 headers and out of date. Perhaps the C 6.0 headers are ok again. I don`t have the headers handy now but can take a look at the docs later which value SEG_NONSHARED has. I thought it is better to use symbolic constants than hardcoded numbers. Probably the value is zero because this case (nonshared segment) is the default case (?). Kai Uwe Rommel Munich rommel@lan.informatik.tu-muenchen.dbp.de