CompuServe Messages

C++

    04-Feb-90 11:44:13
Sb: #88424-C++
Fm: ned konz 76046,223
To: Alan Engebretson 72460,132
I've got it, and am using it on exactly the same kind of system. It's sufficient, especially with floppy caching and a non-volatile RAM disk. I've been somewhat frustrated with the support for library development, because of the way the Lattice C treats declarations like: int a; These are generated in every module which includes a class definition which uses static members. Unfortunately, the Lattice C looks at that as something equivalent to: int a = 0; causing problems at link time. (under MS-DOS, the former form ends up in a COMMON area, with no problems at link.) You have to do rather involved things to get some kinds of class libraries to work; the most workable way involves compiling the library modules with a special compiler flag which treats these declarations as externs (all of them!), then including ALL the header files in your main module. Ugly, but probably usable. But as far as learning C++, the package (along with, say, Lippman's book and Stroustrop's book) is fine. I'd ignore Weiner and Pinson's book at first.