Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XPCom, C++ -- ld: duplicate symbol

3 views
Skip to first unread message

Simon

unread,
Oct 13, 2008, 11:06:54 AM10/13/08
to
Hello!

I'm working on an extension. I implemented it in c++ with the xpcom
interface and my test-extension works fine. But the "real-project"
implementation doesn't work. Now I have more then one .cpp files, but
only the "main" file have an idl-file. Should/Must I create for
every .h/.cpp file an idl-file-Interface?

My implementation idea was: the interface-cpp gets information from
the ui and instances all other required objects.
However, I get this error:

ld: duplicate symbol EventViewData::EventViewData(nsString_external&,
nsIDOMWindow*&, nsAString const&, nsAString const&)in
mozReceiveModule.o and mozReceive.o

Can anybody help me, or need you more information?
Best regards,

Simon

Simon

unread,
Oct 13, 2008, 12:00:40 PM10/13/08
to

It's done. It was my failure. I have included an .cpp file but it
should be an .h file. Now it compiles. Thanks...

0 new messages