Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!beach.cis.ufl.edu!sml From: sml@beach.cis.ufl.edu (Shein-Fong Law) Newsgroups: comp.lang.c++ Subject: initialization of static class member Message-ID: <21931@uflorida.cis.ufl.EDU> Date: 24 Jan 90 17:49:47 GMT Sender: news@uflorida.cis.ufl.EDU Reply-To: sml@beach.cis.ufl.edu () Organization: UF CIS Department Lines: 17 I used Zortech C++ 1.x compiler to compile the following code. class string { static int AlloIncr; . . . } In my program I initialize AlloIncr as follows: int string::AlloIncr = 8; When I compiled it I got the error message "symbol AlloIncr already defined" . I understand that if I use Zortech 2.00 version, there will not be any error. Can any one tell me how should I correct the error?(how should I initialize AlloIncr to a nonzero value?) . Thanks in advance.