First a simple example of what I did:
class_a.h
---------
class A
{
public:
void funcA();
class_a.ccQuote:}
----------
#include "class_a.h"
inline
void A::funcA()
{
//do something
main.ccQuote:}
-------
#include "class_a.h"
int main()
{
//do something here
A a;
a.funcA();
return 0;
I compile like this, using sun C++ workshop compiler 5.0Quote:}
CC -c -o A.o class_a.cc
CC -o myprogram A.o main.cc.
I get a linking error telling me that the symbol funcA() was reference in
main, and is not implemented. Has anyone experienced this problem? Know of
a solution? Know of a better forum to post this question? (I couldn't find
any forums on sun's website that dealt with anything other than WS7.0 (ONE),
or Java.)
Thanks in advance,
Shea Martin.
~S