S
Slavko Vorkapitch
In common.h
extern int currentLineNumber;
extern int currentNestingLevel;
In common.cpp
#incude "common.h"
int currentLineNumber = 0;
int currentNestingLevel = 0;
In buffer.cpp
#include "common.h"
char TSourceBuffer::GetLine(void)
{
extern int currentLineNumber;
extern int currentNestingLevel;
do stuff with currentLineNumber and currentNestingLevel..
g++ is complaining about undefined reference to these two variables.
Any help appreciated.
Thanks in advance,
El Squid
extern int currentLineNumber;
extern int currentNestingLevel;
In common.cpp
#incude "common.h"
int currentLineNumber = 0;
int currentNestingLevel = 0;
In buffer.cpp
#include "common.h"
char TSourceBuffer::GetLine(void)
{
extern int currentLineNumber;
extern int currentNestingLevel;
do stuff with currentLineNumber and currentNestingLevel..
g++ is complaining about undefined reference to these two variables.
Any help appreciated.
Thanks in advance,
El Squid