Hi,

Under browser/gtk, it has 'src' and 'test'.

And in 'src', I create a new file A.cpp in the 'src' directory which
has 2 static methods setA(), getA().

But when i call those 2 static methods in TestGtkEmbed (a file in
'test') , I get these 2 linking error.

/home/jon/mozilla/embedding/browser/gtk/tests/TestGtkEmbed.cpp:290:
undefined reference to `A::setA(int a)'
TestGtkEmbed.o: In function `ob_sig_int':
/home/jon/mozilla/embedding/browser/gtk/tests/TestGtkEmbed.cpp:1172:
undefined reference to `A::getA()'

Can you please tell me how can I fix these 2 linking error?  I am sure
that I have those 2 methods implmenetned in A.cpp and A.cpp compiles.

Thank you.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to