Hi all,

I was experimenting a bit with the win32 example source for newAPI
(https://wiki.mozilla.org/Embedding/NewApi/Win32) and everything works
fine. Now I want to start my own project, so I've created a new Win32
(not empty) project (VC8 (Visual Studio 2005), Windows XP), set up
project settings the same way as the example code has:

C++ properties
- GRE_HOME points to my objdir/dist/bin
- additional include directories are the same as example's are
- preprocessor definitions are: XPCOM_GLUE=1;XP_WIN=1

Linker properties
- additional library dirs: "$(GRE_HOME)\..\lib"
- additional dependencies: xpcomglue.lib kernel32.lib user32.lib
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib

the project directory structure is the same as example's is. I've
copied the 'common' directory which contains the embedding newAPI
sources and headers so it's relatively to the exe file like this ../../
common (is the same as in example and is specified as additional
include dir) and I've copied the 'mozembed' dir to the location
PROJECT/debug/

I've added the 'common' directory files to the project and set the
*.cpp ones to not to use the precompiled header.

Now it looks to be set up the same way the example is and the
compilation shows no errors but the linker does.
Errors are:

Error   1       error LNK2019: unresolved external symbol "public: wchar_t
const * __thiscall nsAString::BeginReading(void)const " (?
beginread...@nsastring@@QBEPB_WXZ) referenced in function "public:
wchar_t const * __thiscall nsString_external::get(void)const " (?
g...@nsstring_external@@QBEPB_WXZ)      embed.obj

Error   2       fatal error LNK1120: 1 unresolved externals     
C:\MultiBrowser\MB
\Debug\MB.exe


Could you please tell me what's the problem? Thank you in advance.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to