Simply the best answers.Get 100$ bonus
Error compiling FLUENT R12.0 User Defined Functions (UDFs) LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
Steps to take to help resolve this issue :
1.kernel32.lib comes from the Windows SDK, which Microsoft Visual Studio installs, and the path to that should be available to the linker automatically. It may be that whoever installed Microsoft Visual Studio did not install the SDK component. Look to see if there is a folder C:Program FilesMicrosoft SDKsWindowsv6.0ALib and if so, does it include kernel32.lib? (The 6.0A subdirectory might be a higher number)
2.Open up the Visual Studio Command Prompt and type: set windowssdkdir
You should see something like this:
WindowsSdkDir=C:Program FilesMicrosoft SDKsWindowsv6.0A
3.Try a installation "repair" option for MicrosoftVisual Studio 2008
4.Download the latest SDK from Microsoft (If this link is broken do a search on the Internet for the SDK) http://www.microsoft.com/downloads/details.aspx?FamilyID=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en
5.Verify that the SDK environment is set to the correct path. You might have to go into the Windows Registry and check the path:
WINDOWS 64-BIT / FLUENT 64-BIT
If you are running on Windows 64 and trying to compile ANSYS FLUENT 64-bit check that the 64-bit compiler tools have been installed
Go to Control Panel, Add/Remove Programs, Select Microsoft Visual Studio 2005 or 2008 Standard or Professional Edition and click the Change/Remove button. This will bring you into Maintenance Mode. Choose Add/Remove Features. Add X64 Compilers and Tools.
Go to Control Panel, Programs and Features, Select Microsoft Visual Studio 2005 or 2008 Standard or Professional Edition application then choose Uninstall/Change. This will bring you into Maintenance Mode. Select C++ then check X64 Compilers and Tools.