I m trying to access XPCOM components. For that, I downloaded the Gecko SDK
package from Mozilla and untarred. (Are there any more settings involved ?)
coz when i run this simple program :

#include <iostream>
#include "../include/nsXPCOM.h"
#include "../include/nsCOMPtr.h"
#include "../includensISupportsManager.h"

using namespace std;

int main() {
  nsresult rv;
  ncCOMPtr<nsIServiceManager> myServManager;

  return 0;
}

I get error:

/tmp/cclKCPBZ.o(.gnu.linkonce.t._ZN8nsCOMPtrI17nsIServiceManagerED1Ev+0xa):
In function `nsCOMPtr<nsIServiceManager>::~nsCOMPtr()':
: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
collect2: ld returned 1 exit status


Can somebody please help me understand the problem. Thanks in advance
Sandesh
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to