Hello everyone,
I am so sorry, if for the last couple of days I would have bugged
up a lot many people. But I have been trying to get rid of this bug which I
am not able to. My program keeps throwing this error :
/tmp/cc5gIXjH.o(.gnu.linkonce.t._ZN8nsCOMPtrI17nsIServiceManagerED1Ev+0xa):
In function `nsCOMPtr<nsIServiceManager>::~nsCOMPtr()':
/home/ssethia/gecko-sdk/code/create_window.cpp:10: undefined reference to
`nsCOMPtr_base::~nsCOMPtr_base()'
Archana, according to your suggestion I even set the LDFLAGS infact I made a
Makefile which looks like this
CXX = g++
CPPFLAGS += -fno-rtti -fno-exceptions -ggdb
GECKO_CONFIG_INCLUDE = -include mozilla-config.h
GECKO_DEFINES = -DXPCOM_GLUE -DMOZILLA_STRICT_API
GECKO_INCLUDES = -I/home/ssethia/gecko-sdk/include // ( online
materials tell this to be set to xpcom/include nspr/include but my version
of
// Gecko-SDK only has 4 folders bin,include,lib n idl ..........so i just
set this to point
// within include folder to all the include files
GECKO_LDFLAGS = -L/home/ssethia/gecko-sdk/lib -lxpcomglue -lembed_base_s
build:
$ (CXX) -o create_window $ (GECKO_CONFIG_INCLUDE) $ (GECKO_DEFINES)
$ (GECKO_INCLUDES) $ (GECKO_LDFLAGS) $ (
CPPFLAGS) create_window
clean:
rm create_window
and the code is as simple as :
#include <iostream>
#include "../include/nsXPCOM.h"
#include "../include/nsCOMPtr.h"
using namespace std;
int main() {
nsresult rv;
nsCOMPtr<nsIServiceManager> ServMgr;
return 0;
}
But still same set of errors........Am I doing something wrong here ????????
Thanks for the help guys.......i really appreciate it....
Sandesh
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom