XPCOM编译错误

1. LNK2019: public: wchar_t const * __thiscall nsAString::BeginReading(void)const

 

设置VC编译选项 /Zc:wchar_t-

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Modifying Project Settings.

  2. Click the C/C++ folder.

  3. Click the Language property page.

  4. Modify the Treat wchar_t as Built-in Type property.

2. error C3861: 'do_GetService': identifier not found

 

#include <nsServiceManagerUtils.h>

 

你可能感兴趣的:(XPCOM编译错误)