Mike Lischke
2013-09-02 10:08:06 UTC
Hey Neil,
I just updated my local copy of Scintilla to the latest code in the repository, adjusted the VS project file and tried to compile the library. However this does not link, as I get these errors:
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "struct ID2D1Factory * Scintilla::pD2DFactory" (?***@Scintilla@@3PEAUID2D1Factory@@EA)
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "bool __cdecl Scintilla::LoadD2D(void)" (?***@Scintilla@@YA_NXZ)
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "bool __cdecl Scintilla::IsNT(void)" (?***@Scintilla@@YA_NXZ)
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "void __cdecl Scintilla::Platform_Initialise(void *)" (?***@Scintilla@@***@Z)
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "void __cdecl Scintilla::Platform_Finalise(void)" (?***@Scintilla@@YAXXZ)
1>D:\Work\MySQL\WB6.0\trunk\bin\Debug\Scintilla.dll : fatal error LNK1120: 5 unresolved externals
As you can see these are all parts defined as extern in PlatWin.h. This is a namespace issue. If I comment out the namespace Scintilla .. lines everything links ok.
This sounds a bit weird since the external declaration as well as the actual implementation in PlatWin and its usage in ScintillaWin.cxx are all properly wrapped with either namespace Scintilla {} or using namespace Scintilla. Any idea what's wrong?
Mike
I just updated my local copy of Scintilla to the latest code in the repository, adjusted the VS project file and tried to compile the library. However this does not link, as I get these errors:
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "struct ID2D1Factory * Scintilla::pD2DFactory" (?***@Scintilla@@3PEAUID2D1Factory@@EA)
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "bool __cdecl Scintilla::LoadD2D(void)" (?***@Scintilla@@YA_NXZ)
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "bool __cdecl Scintilla::IsNT(void)" (?***@Scintilla@@YA_NXZ)
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "void __cdecl Scintilla::Platform_Initialise(void *)" (?***@Scintilla@@***@Z)
1>ScintillaWin.obj : error LNK2001: unresolved external symbol "void __cdecl Scintilla::Platform_Finalise(void)" (?***@Scintilla@@YAXXZ)
1>D:\Work\MySQL\WB6.0\trunk\bin\Debug\Scintilla.dll : fatal error LNK1120: 5 unresolved externals
As you can see these are all parts defined as extern in PlatWin.h. This is a namespace issue. If I comment out the namespace Scintilla .. lines everything links ok.
This sounds a bit weird since the external declaration as well as the actual implementation in PlatWin and its usage in ScintillaWin.cxx are all properly wrapped with either namespace Scintilla {} or using namespace Scintilla. Any idea what's wrong?
Mike
--
www.soft-gems.net
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
www.soft-gems.net
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.