Link to home
Start Free TrialLog in
Avatar of supersuny2k
supersuny2kFlag for Netherlands

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
#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;
};
 
------------------------------------------------------------------------

Open in new window

SOLUTION
Avatar of josgood
josgood
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of supersuny2k

ASKER

Brilliant Thank you