[QScintilla] Compiling New Release

Phil Thompson phil at riverbankcomputing.com
Fri Feb 29 05:10:36 GMT 2008


On Thursday 28 February 2008, Patrick Mabie wrote:
> Hello!
>
> Using
> Qt-Win-4.3.4 OpenSource
> Windows Vista Ult
> MSVC 9.0
>
> <D:\QScintilla\Qt4>
> <>nmake
>
> Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>         "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"
> -f Makefile.Release
>
> Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>         link /LIBPATH:"d:\Qt-Win-4.3.4\lib" /NOLOGO /INCREMENTAL:NO /DLL
> /MANIFESTFILE:"release\qscintilla2.intermediate.manifest" /OUT:rele
> ase\qscintilla2.dll @C:\Users\PJM\AppData\Local\Temp\nmB70B.tmp
> qsciscintillabase.obj : error LNK2005: "public: long __thiscall
> QsciScintillaBase::SendScintilla(unsigned int,unsigned long,char const
> *)con st " (?SendScintilla at QsciScintillaBase@@QBEJIKPBD at Z) already defined
> in qsciscintilla.obj
> qsciscintillabase.obj : error LNK2005: "public: long __thiscall
> QsciScintillaBase::SendScintilla(unsigned int,char const *)const "
> (?SendSci ntilla at QsciScintillaBase@@QBEJIPBD at Z) already defined in
> qsciscintilla.obj qsciscintillabase.obj : error LNK2005: "public: long
> __thiscall
> QsciScintillaBase::SendScintilla(unsigned int,char const *,char const
> *)cons t " (?SendScintilla at QsciScintillaBase@@QBEJIPBD0 at Z) already defined
> in qsciscintilla.obj
> qsciscintillabase.obj : error LNK2005: "public: long __thiscall
> QsciScintillaBase::SendScintilla(unsigned int,long)const "
> (?SendScintilla at Q sciScintillaBase@@QBEJIJ at Z) already defined in
> qsciscintilla.obj
> qsciscintillabase.obj : error LNK2005: "public: long __thiscall
> QsciScintillaBase::SendScintilla(unsigned int,int)const "
> (?SendScintilla at Qs ciScintillaBase@@QBEJIH at Z) already defined in
> qsciscintilla.obj
> qsciscintillabase.obj : error LNK2005: "public: long __thiscall
> QsciScintillaBase::SendScintilla(unsigned int,unsigned long,class QPixmap
> co nst &)const " (?SendScintilla at QsciScintillaBase@@QBEJIKABVQPixmap@@@Z)
> already defined in qsciscintilla.obj
>    Creating library release\qscintilla2.lib and object
> release\qscintilla2.exp
> release\qscintilla2.dll : fatal error LNK1169: one or more multiply
> defined symbols found
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 9.0\VC\BIN\link.EXE"' : return code '0x491'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 9.0\VC\BIN\nmake.exe"' : return code '0x2'
> Stop.
>
> Any thoughts , I tried the linker option /FORCE:MULTIPLE it worked , but
> it also said that it might not work right ,
> so I didn't use it. I have never had a problem  with any of your work,
> so I thought I would let you know.

The problem is that the compiler is finding the installed QScintilla .h files 
before the new ones.

Until I fix the problem properly, delete the \path\to\Qt\include\QSci 
directory before running nmake.

Phil


More information about the QScintilla mailing list