By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,778 Members | 2,015 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,778 IT Pros & Developers. It's quick & easy.

Unsatisfied symbols

P: n/a
Hi Eeveyone

I have a simple source.

compile is ok but link error.

Please let me know what problem is.

class Global
{
public:
static int ns;
};

int main()
{

Global::ns = 1;
return 0;
}
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
SC Shin wrote:
Hi Eeveyone

I have a simple source.

compile is ok but link error.

Please let me know what problem is.

class Global
{
public:
static int ns;
};
int Global::ns; // Declared above, defined here.

int main()
{

Global::ns = 1;
return 0;
}


Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.