delorie.com/archives/browse.cgi | search |
From: | "Raf256" <raf256 AT go2 DOT pl> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <3ba455e7 AT news DOT vogel DOT pl> <3ba45d99 DOT 217604548 AT news DOT cis DOT dfn DOT de> |
Subject: | Re: static const as array size |
Date: | Sun, 16 Sep 2001 11:23:58 +0200 |
Lines: | 23 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2615.200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
NNTP-Posting-Host: | chello062179024002.chello.pl |
X-Original-NNTP-Posting-Host: | chello062179024002.chello.pl |
Message-ID: | <3ba46fc7@news.vogel.pl> |
X-Trace: | news.vogel.pl 1000632263 chello062179024002.chello.pl (16 Sep 2001 11:24:23 +0200) |
X-Complaints-To: | Usenet AT news DOT vogel DOT pl |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
> protected : > static const int maxDescrLen=500; > char description[maxDescrLen]; > public : > cThrowBasic(); > }; > const int cThrowBasic::maxDescrLen; but I have declaration of cThrowBasic in a.h and definition in a.cc a.h is included by many files, so I get multiple definitoin error. Where whuld I put 'extern' ? Can You post small example ? Thanks :))) -- Raf256 : C C++ VC VB PHP TP Delphi JS Java ,--, _ ,- _ _ _ ,---------------------------------------------, |,-'`_|_|_ `_||_'|_' | raf256 AT go2 DOT pl | `\(_) | |_,,_||_| | (SIGN not ready ;)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |