Nmake Fatal Error U1077 Link.exe
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 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 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
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up C: LINK.EXE fails from Makefile but not https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/288274 from the Command line up vote 3 down vote favorite When I attempt to link from a makefile I get the following error: LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib'. Makefile Execution: C:\Users\snmcdonald\Desktop\winMake2\winMake2>nmake "_DEBUG=" /f win2.mk build Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. cl /c /ZI /Fo"Debug\\" /Fe"Debug\\" main.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 http://stackoverflow.com/questions/4477043/c-link-exe-fails-from-makefile-but-not-from-the-command-line for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. main.c cl /c /ZI /Fo"Debug\\" /Fe"Debug\\" lib.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. lib.c lib Debug\lib.obj /out:Debug\lib.lib Microsoft (R) Library Manager Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. link Debug\main.obj Debug\lib.lib /out:Debug\main.exe Microsoft (R) Incremental Linker Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. main.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specif ication LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib' NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI N\link.EXE"' : return code '0x450' Stop. However, if I rerun the exact same line that failed and link from the console I get a successful build. I am using the exact same lib and obj that were produced from my make file. Console Execution: C:\Users\snmcdonald\Desktop\winMake2\winMake2>link Debug\main.obj Debug\lib.lib /o ut:Debug\main.exe Microsoft (R) Incremental Linker Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. main.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specif ication C:\Users\SHANEM~1\Desktop\winMake2\winMake2>debug\main.exe print from lib I have included my makefile for reference. Makefile !ifdef _DEBUG CC = cl CFLAGS = /c /ZI FILES = *.c OUT = /Fo"Debug\\" /Fe"Debug\\
10 and am getting 2 fatal errors as below. I found in another FAQ regarding setting the cygwin path prior to nmake to resolve the return code https://ask.wireshark.org/questions/35933/getting-build-fatal-errors-u1077-return-code-0x1-and-0x2 of '0x1' doesn't seem to help in my case. Please suggest. thanks Muriel sbc.c link /lib /out:codecs.lib codecs.obj G711udecode.obj G711adecode.obj G722decode.obj G726decode.obj sbc.obj /usr/bin/link: extra operand codecs.obj' Try/usr/bin/link --help' for more information. NMAKE : fatal error U1077: 'c:\cygwin\bin\link.EXE' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. build_error nmake fatal fatal asked 02 Sep '14, 09:55 christenmu 36●6●7●11 accept rate: 50% One Answer: oldestnewestmost voted 0 From your log output, it seems that your system has a link.exe program in Cygwin installation that is being used instead of the one coming from MSVC2010. Are you trying to compile from Cygwin shell or from MSVC command prompt (as configured by the vcvarsall.bat script)? nmake fatal error You should use the latter and your PATH environment variable should have MSVC2010 bin folder included before Cygwin bin folder. link answered 02 Sep '14, 13:19 Pascal Quantin 4.3k●4●47 accept rate: 28% I did my build from windows cmd.exe. But I noticed that when I downloaded the cygwin there's a link.exe in C:\cygwin64\bin. I renamed that link.exe so it won't pick up. But I am now getting these errors. cd zlib.tmp "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" / -f win32/Makefile.msc zlib1.dll AS=ml64 LOC="-DASMV -DASMINF" OBJA="inffasx64.obj gvmat64.obj inffas8664.obj" Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. ml64 -c -coff -Zi -DASMV -DASMINF contrib/masmx64\inffasx64.asm 'ml64' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'ml64' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. (02 Sep '14, 15:46) christenmu As far as I know, MSVC2010 Express Edition does not come with an x64 compiler out of the box. You need to install the 7.1 SDK (see http://stackoverflow.com/questions/1865069/how-to-compile-a-64-bit-application-using-visu