Linking error in KDevelop with MSVC
Andreas Pakulat
apaku at gmx.de
Wed Dec 26 21:36:24 CET 2007
Hi,
I'm almost done with C++ support in KDevelop building on MSVC, however
there's a linking error when building the plugin (see the attached
file).
I don't quite understand it, the ExpressionParser is completely exported
and it does have an evaluateExpression function with the proper
signature. (ImportTrace is a typedef from QList<ImportTraceItem>).
The plugin also properly links against the cppduchain library.
Anybody with a hint how to fix this?
Andreas
PS: sorry for the german message, if anybody knows how to tell nmake to
print the english ones I'm going to re-run it.
--
Today is the last day of your life so far.
-------------- next part --------------
Microsoft (R) Program Maintenance Utility Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.
cd D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo
D:\andreas\kde4\bin\cmake.exe -HD:\andreas\kde4\sources\trunk\KDE\kdevelop -BD:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo --check-build-system CMakeFiles\Makefile.cmake 0
cd D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo\languages\cpp
cd D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo
D:\andreas\kde4\bin\cmake.exe -E cmake_progress_start D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo\CMakeFiles 19
nmake -f CMakeFiles/Makefile2 /nologo - languages\cpp\all
nmake -f languages\cpp\CMakeFiles\kdev_includepathresolver.dir/build.make /nologo -L languages\cpp\CMakeFiles\kdev_includepathresolver.dir\depend
nmake -f languages\cpp\CMakeFiles\kdev_includepathresolver.dir/build.make /nologo -L languages\cpp\CMakeFiles\kdev_includepathresolver.dir\build
D:\andreas\kde4\bin\cmake.exe -E cmake_progress_report D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo\CMakeFiles
[ 0%] Built target kdev_includepathresolver
nmake -f languages\cpp\parser\rpp\CMakeFiles\kdev4cpprpp.dir/build.make /nologo -L languages\cpp\parser\rpp\CMakeFiles\kdev4cpprpp.dir\depend
nmake -f languages\cpp\parser\rpp\CMakeFiles\kdev4cpprpp.dir/build.make /nologo -L languages\cpp\parser\rpp\CMakeFiles\kdev4cpprpp.dir\build
D:\andreas\kde4\bin\cmake.exe -E cmake_progress_report D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo\CMakeFiles 8 9
[ 10%] Built target kdev4cpprpp
nmake -f languages\cpp\parser\CMakeFiles\kdev4cppparser.dir/build.make /nologo -L languages\cpp\parser\CMakeFiles\kdev4cppparser.dir\depend
nmake -f languages\cpp\parser\CMakeFiles\kdev4cppparser.dir/build.make /nologo -L languages\cpp\parser\CMakeFiles\kdev4cppparser.dir\build
D:\andreas\kde4\bin\cmake.exe -E cmake_progress_report D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo\CMakeFiles 5 6 7
[ 26%] Built target kdev4cppparser
nmake -f languages\cpp\cppduchain\CMakeFiles\kdev4cppduchain.dir/build.make /nologo -L languages\cpp\cppduchain\CMakeFiles\kdev4cppduchain.dir\depend
nmake -f languages\cpp\cppduchain\CMakeFiles\kdev4cppduchain.dir/build.make /nologo -L languages\cpp\cppduchain\CMakeFiles\kdev4cppduchain.dir\build
D:\andreas\kde4\bin\cmake.exe -E cmake_progress_report D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo\CMakeFiles 13 14 15 16 17 18
[ 57%] Built target kdev4cppduchain
nmake -f languages\cpp\CMakeFiles\kdevcpplanguagesupport.dir/build.make /nologo -L languages\cpp\CMakeFiles\kdevcpplanguagesupport.dir\depend
nmake -f languages\cpp\CMakeFiles\kdevcpplanguagesupport.dir/build.make /nologo -L languages\cpp\CMakeFiles\kdevcpplanguagesupport.dir\build
Linking CXX shared module ..\..\bin\kdevcpplanguagesupport.dll
cd D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo\languages\cpp
D:\andreas\kde4\bin\cmake.exe -P CMakeFiles\kdevcpplanguagesupport.dir\cmake_clean_target.cmake
cd D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo
cd D:\andreas\kde4\tmp\kdevelop-3.97.20071224\work\msvc2005-RelWithDebInfo\languages\cpp
link /nologo @C:\DOKUME~1\Andreas\LOKALE~1\Temp\nm1ED.tmp
Bibliothek "..\..\bin\kdevcpplanguagesupport.lib" und Objekt "..\..\bin\kdevcpplanguagesupport.exp" werden erstellt.
codecompletioncontext.obj : error LNK2019: Verweis auf nicht aufgel?stes externes Symbol ""__declspec(dllimport) public: class Cpp::ExpressionEvaluationResult __thiscall Cpp::ExpressionParser::evaluateExpression(class QByteArray const &,class KDevelop::DUChainPointer<class KDevelop::DUContext>,class QList<class KDevelop::ImportTraceItem> const &)" (__imp_?evaluateExpression at ExpressionParser@Cpp@@QAE?AVExpressionEvaluationResult at 2@ABVQByteArray@@V?$DUChainPointer at VDUContext@KDevelop@@@KDevelop@@ABV?$QList at VImportTraceItem@KDevelop@@@@@Z)" in Funktion ""public: __thiscall Cpp::CodeCompletionContext::CodeCompletionContext(class KDevelop::DUChainPointer<class KDevelop::DUContext>,class QString const &,int,class QStringList const &,int)" (??0CodeCompletionContext at Cpp@@QAE at V?$DUChainPointer at VDUContext@KDevelop@@@KDevelop@@ABVQString@@HABVQStringList@@H at Z)".
..\..\bin\kdevcpplanguagesupport.dll : fatal error LNK1120: 1 nicht aufgel?ste externe Verweise.
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Platform SDK for Windows Server 2003 R2\Bin\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Platform SDK for Windows Server 2003 R2\Bin\nmake.exe"' : return code '0x2'
Stop.
More information about the Kde-windows
mailing list