From kde-windows Wed Dec 26 20:36:24 2007 From: Andreas Pakulat Date: Wed, 26 Dec 2007 20:36:24 +0000 To: kde-windows Subject: Linking error in KDevelop with MSVC Message-Id: <20071226203624.GA28738 () morpheus ! apaku ! dnsalias ! org> X-MARC-Message: https://marc.info/?l=kde-windows&m=119870195816929 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--6TrnltStXW4iwmi0" --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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). 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. --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename=kdev_error_lnk_cpp Content-Transfer-Encoding: 8bit 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 QList const &)" (__imp_?evaluateExpression@ExpressionParser@Cpp@@QAE?AVExpressionEvaluationResult@2@ABVQByteArray@@V?$DUChainPointer@VDUContext@KDevelop@@@KDevelop@@ABV?$QList@VImportTraceItem@KDevelop@@@@@Z)" in Funktion ""public: __thiscall Cpp::CodeCompletionContext::CodeCompletionContext(class KDevelop::DUChainPointer,class QString const &,int,class QStringList const &,int)" (??0CodeCompletionContext@Cpp@@QAE@V?$DUChainPointer@VDUContext@KDevelop@@@KDevelop@@ABVQString@@HABVQStringList@@H@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. --6TrnltStXW4iwmi0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-windows mailing list Kde-windows@kde.org https://mail.kde.org/mailman/listinfo/kde-windows --6TrnltStXW4iwmi0--