Nmake Fatal Error U1077 Link.exe 0x460
Contents |
my own stupidity. If I can save you some hours nmake fatal error u1077 return code 0x460 of banging your head against the wall then I hope
Fatal Error U1077 Link Return Code 0x460
this helps. I'm using Qt 4.4.0 on Windows with MSVC 2008 Express, although I'm sure
Nmake Fatal Error U1077 'link.exe' Return Code '0x460'
this could happen to anyone when compiling on windows. The problem happens when you have one library linking against another library. I use the following
0x460 Error
code to export classes on windows: #if defined(Q_OS_WIN32) # ifdef MYLIB # define MYEXPORT Q_DECL_EXPORT # else # define MYEXPORT Q_DECL_IMPORT # endif #else # define MYEXPORT #endif class MYEXPORT myclass : public QObject { //... } If I try to be sneaky and use the same MYEXPORT macro in both libraries and then try to link them together i get a mess of errors like this: cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DAXISLIB -DQT_DLL -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\qt\msvc\4.4.0\include\QtUiTools" -I"c:\qt\msvc\4.4.0\include\QtCore" -I"c:\qt\msvc\4.4.0\include\QtCore" -I"c:\qt\msvc\4.4.0\include\QtGui" -I"c:\qt\msvc\4.4.0\include\QtGui" -I"c:\qt\msvc\4.4.0\include\QtXml" -I"c:\qt\msvc\4.4.0\include\QtXml" -I"c:\qt\msvc\4.4.0\include\QtSql" -I"c:\qt\msvc\4.4.0\include\QtSql" -I"c:\qt\msvc\4.4.0\include" -I"..\libaxis" -I"c:\qt\msvc\4.4.0\include\ActiveQt" -I".tmp" -I"." -I"c:\qt\msvc\4.4.0\mkspecs\default" -Fo.tmp\ @C:\DOCUME~1\root\LOCALS~1\Temp\nm1648.tmpclientmo dule.cpp link /LIBPATH:"c:\qt\msvc\4.4.0\lib" /NOLOGO /INCREMENTAL:NO /DLL /MANIFEST /MANIFESTFILE:".tmp\mylib.intermediate.manifest" /OUT:..\bin\mylib.dll @C:\DOCUME~1\root\LOCALS~1\Temp\nm1649.tmp Creating library ..\bin\mylib.lib and object ..\bin\mylib.exp clientmodule.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const MyObject::staticMetaObject" (?staticMetaObject@MyObject@@2UQMetaObject@@B) referenced in function "public: static class QString __cdecl MyObject::tr(char const *,char const *)" (?tr@MyObject@@SA?AVQString@@PBD0@Z) clientmodule.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall MyObject::metaObject(void)const " (?metaObject@MyObject@@UBEPBUQMetaObject@@XZ) clientmodule.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall MyObject::qt_metacast(char const *)" (?qt_metacast@MyObject@@UAEPAXPBD@Z) clientmodule.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall MyObject::qt_metacall(enumQMetaObject::Call,int,vo id * *)" (?qt_metacall@MyObject@@UAEHW4Call@QMet
LearningModern CodeNetworkingOpen SourceStorageToolsDeveloper TypeEmbedded SystemsGame DevMediaTechnical, Enterprise, HPCWebOSAll ToolsAndroid*HTML5Linux*OS X*Windows*ResourcesCode SamplesContact SupportDocumentationFree SoftwareIntel Registration CenterProduct ForumsSDKsResourcesPartner with IntelAcademic ProgramPartner SpotlightBlack Belt DeveloperDeveloper MeshInnovator ProgramSuccess StoriesLearnBlogBusiness TipsEventsVideosSupportContact SupportDeveloper EvangelistsFAQsForums Search form Search You are hereHome › Forums › Intel® Software Development Products › Intel® Math Kernel Library FacebookLinkedInTwitterDiggDeliciousGoogle Plus Problem linking files for x64 in C# Problem linking files for x64 in C# gregrowe Tue, 08/10/2010 - 06:11 Hi, I've been using a dll created by using the walkthrough at http://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program/ to integrate MKL into my application successfully for several months now but have recently needed to add several new http://www.qtcentre.org/archive/index.php/t-13776.html functions to it including djacobi. For the x86 dll I managed to find all the libraries I required to successfully build it, however for the x64 build I have not been able to find the library/libraries which I need to link to include djacobi. Any help would be greatly appreciated. Thanks, Greg. RSS Top 7 posts / 0 new Last https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/288274 post For more complete information about compiler optimizations, see our Optimization Notice. Log in to post comments Vladimir Koldakov (Intel) Tue, 08/10/2010 - 08:04 Hi Greg, Just include djacobi in the functions list MKLfunctions.lst and rebuild mkl.dll. To find the required libraries try to use Intel Math Kernel Library Link Line Advisor http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/. You can find the libraries in the makefile as well: MKL_LIB="mkl_intel_lp64_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib" Thanks, Vladimir Top Log in to post comments gregrowe Tue, 08/10/2010 - 08:23 Hi Vladimir,Thanks for your help, I had already added djacobi to the function list and found to build the x86 version of the dll I had to add "mkl_intel_c.lib mkl_core.lib mkl_solver.lib mkl_intel_thread.lib libiomp5md.lib" to the MKL_LIB parameter in the makefile (following a suggestion I found elsewhere on the forums) so that nmake would not return with a linker exception. Unfortunately I can't add this to the x64 version as there isn't a "mkl_intel_c.lib" library for x64. I tried the link line advisor but its suggested link line still throws a linker exception (user.def : error LNK2001: unresolved external s
SQL Server 2014 Express resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Samples Retired content https://social.msdn.microsoft.com/Forums/en-US/3f4b362e-77c9-4709-88f7-b28f3248015a/error-sysgen0000-nmake-fatal-error-u1077-link-return-code-0x460?forum=winembplatdev We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: error SYSGEN0000: NMAKE : fatal error U1077: 'link' : return code '0x460' Windows Embedded Compact > Windows Embedded Compact Platform Development Question 0 Sign in to vote I'm getting this error: fatal error C:\WINCE500\build.log(1) : error SYSGEN0000: error(s) in sysgen phase, when I opened by build build.txt. coredll.def : error LNK2001: unresolved external symbol DeregisterBluetoothCOMPort coredll.def : error LNK2001: unresolved external symbol RegisterBluetoothCOMPort coredll.def : error LNK2001: unresolved external symbol RequestBluetoothNotifications coredll.def : error LNK2001: unresolved external symbol StopBluetoothNotifications NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' : return code '0x2' Stop. fatal error u1077 NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' : return code '0x2' Stop. It looks like BSP is not finding the implementation for those four function, could anybodytell me how to resolve this those linker error? I will appreciate your help Thursday, May 16, 2013 1:19 AM Reply | Quote Answers 1 Sign in to vote Verify the Sysgen variable related to Bluetooth are set in your build. If everything is fine try with clean sysgen. Jeslin Paul Marked as answer by Liang1 Friday, May 17, 2013 7:26 PM Thursday, May 16, 2013 10:52 AM Reply | Quote 1 Sign in to vote A quick Google search for RequestBluetoothNotifications and I find the documentation (http://msdn.microsoft.com/en-us/library/aa916492.aspx) which clearly documents that the library is coredll.lib. Since you absolutly must have coredll.lib, this suggests that Jeslin was on the right path when he suggested checking your SYSGEN variables to ensure that you have included Bluetooth support.Bruce Eitman (eMVP) Senior Engineer Bruce.Eitman AT Eurotech DOT com My BLOG http://geekswithblogs.net/bruceeitman Eurotech Inc. www.Eurotech.com Marked as answer by Liang1 Friday, May 17, 2013 7:26 PM Thursday, May 16, 2013 6:54 PM Reply | Quote Moderator All replies 1 Sign in to vote Verify the Sysgen variable related to Blu