List Info

Thread: nsString linkage question




nsString linkage question
country flaguser name
United States
2007-03-22 10:49:43
Hi,

  When specifying:

#define MOZILLA_STRICT_API
#include "nsStringAPI.h"

and than:

  nsString testStr = NS_LITERAL_STRING("test");

it works and requires only xpcom.lib to be linked against.

But I need to compile with:
#define MOZILLA_INTERNAL_API
#include "nsString.h"

than whatever I try to link it to, i get link errors.
Can someone suggest what libraries I need ?

Thanks!

_______________________________________________
dev-apps-firefox mailing list
dev-apps-firefoxlists.mozilla.org
h
ttps://lists.mozilla.org/listinfo/dev-apps-firefox

Re: nsString linkage question
country flaguser name
United States
2007-03-22 11:19:11
Konstantin.Osypagmail.com wrote:

> But I need to compile with:
> #define MOZILLA_INTERNAL_API
> #include "nsString.h"
> 
> than whatever I try to link it to, i get link errors.
> Can someone suggest what libraries I need ?

1) Have you read http:
//developer.mozilla.org/en/docs/XPCOM_Glue ?
2) Please explain *why* you need to use internal linkage.
We're trying to
move all new code away from internal linkage, except code
that actually is
going to live in the core.
3) What app are you targeting, and on what branch? On
XULRunner trunk (and
soon on Firefox trunk), the internal API will not be
available.

--BDS
_______________________________________________
dev-apps-firefox mailing list
dev-apps-firefoxlists.mozilla.org
h
ttps://lists.mozilla.org/listinfo/dev-apps-firefox

Re: nsString linkage question
country flaguser name
United States
2007-03-22 13:39:55
Yes, I checked it.
I'm trying to use html parsing, alike to
nsHTMLFormatConverter::ConvertFromHTMLToUnicode,
and some of objects I need use MOZILLA_INTERNAL_API.
Despite gudelines at http:
//developer.mozilla.org/en/docs/XPCOM_Glue I
can't link properly.

Thanks,
K.

> 1) Have you readhttp
://developer.mozilla.org/en/docs/XPCOM_Glue?
> 2) Please explain *why* you need to use internal
linkage. We're trying to
> move all new code away from internal linkage, except
code that actually is
> going to live in the core.
> 3) What app are you targeting, and on what branch? On
XULRunner trunk (and
> soon on Firefox trunk), the internal API will not be
available.
>
> --BDS


_______________________________________________
dev-apps-firefox mailing list
dev-apps-firefoxlists.mozilla.org
h
ttps://lists.mozilla.org/listinfo/dev-apps-firefox

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )