🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.owl
Article #67

Can't use DIAG_DECLARE_GROUP

#67
From: Jean-Marc RIGADE
Date: Sat, 25 Apr 1998 00:00
34 lines
1650 bytes
Hi,

I try to use DIAG_DECLARE_GROUP without succes using BC++5.0. I've write a
very little program just to try it and i have an error when i link :
Error:(1,1):Undefined symbol 
TDiagGroupMygroup::Trace(unsigned char,const char far*,const char
far*,unsigned long) in module trace.cpp
This is the trace.cpp module : 
#define __TRACE
#include <stdio.h>
#include <checks.h>
DIAG_DECLARE_GROUP(Mygroup);
char             *Marque1;
void main(void)
{
  Marque1 = new char[10];
  strcpy(Marque1,"abcdefg");
  TRACEX(Mygroup, 1, "Marque1 : '" << Marque1 << "'");
  delete Marque1;
}

If i try to replace "DIAG_DECLARE_GROUP(Mygroup);" by
"DIAG_DEFINE_GROUP(Mygroup);" i've no problem.
But my aim is to control the trace inside the INI file of the module
without touch program, compil and so on...
Where i can find a little simple example who really run to understand where
i missed.

Thank you for your help
-- 
Jean-Marc RIGADE
Email : jmrigade@eurobretagne.fr
Rennes (France)
Technical Details
Message-ID: <01bd7043$54b1cc60$5eda33c2@eurobretagne.eurobretagne.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fe201,5973e30d5114ad0d,start
X-Google-Attributes: gidfe201,public
X-Google-Thread: 1053e6,5973e30d5114ad0d,start
X-Google-Attributes: gid1053e6,public
From: "Jean-Marc RIGADE" <riga0584@eurobretagne.fr>
Subject: Can't use DIAG_DECLARE_GROUP
Date: 1998/04/25
Message-ID: <01bd7043$54b1cc60$5eda33c2@eurobretagne.eurobretagne.fr>
X-Deja-AN: 347557332
X-Complaints-To: news@eurobretagne.fr
X-Trace: gaia.eurobretagne.fr 893506213 17348 (None) 194.51.218.94
Organization: eurobretagne.fr
Newsgroups: comp.os.ms-windows.programmer.tools.owl,fr.comp.os.ms-windows.programmation