supersuny2k
asked on
error LNK2001: unresolved external symbol
I have a GlobalV.h file with Static Variables listed.
These are called from various classes the variables as GlobalV::???variable name.
I now get the following errors, any ideas?
Error 40 error LNK2001: unresolved external symbol "public: static char * * GlobalV::gVComponentRecs" (?gVComponentRecs@GlobalV@ @2PAPADA) ListenMainHandler.obj
Error 41 error LNK2001: unresolved external symbol "public: static int GlobalV::gNComponentRecs" (?gNComponentRecs@GlobalV@ @2HA) ListenMainHandler.obj
Regards,
Josh
These are called from various classes the variables as GlobalV::???variable name.
I now get the following errors, any ideas?
Error 40 error LNK2001: unresolved external symbol "public: static char * * GlobalV::gVComponentRecs" (?gVComponentRecs@GlobalV@
Error 41 error LNK2001: unresolved external symbol "public: static int GlobalV::gNComponentRecs" (?gNComponentRecs@GlobalV@
Regards,
Josh
#pragma once
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <functional>
using namespace std;
class GlobalV
{
public:
GlobalV(void);
~GlobalV(void);
static int gNComponentvalues;
static char **gVComponentvalues;
};
------------------------------------------------------------------------
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.devx.com/tips/Tip/12581
ASKER
Brilliant Thank you