Undefined reference problem

David Holmes - Sun Microsystems David.Holmes at Sun.COM
Sun Nov 29 21:04:58 PST 2009


Newbie question I guess but it's got me perplexed :)

In os::Linux I'm adding:

static pthread_condattr_t _cond_attr[1];
public:
static pthread_condattr_t cond_attr() { return _cond_attr; }

it compiles fine, but at link time I get an error:

Undefined reference to: os::Linux::_cond_attr

??? What did I miss?

Thanks,
David


More information about the hotspot-dev mailing list