Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Can anyone assist - Link: error: could not find 'link'

pecan204
Beginner
1,540 Views

Hello,

I get this link error when building an existing project.

"Link: error: could not find 'link' "

It was working fine and I know of nothing that changed. Seems like it refers to VC libraries?

I also see reference on Intel website:

http://www.intel.com/support/performancetools/fortran/windows/sb/cs-007858.htm

But no information on corrective actions?

Any suggestions?

Thanks

Ken

0 Kudos
7 Replies
Steven_L_Intel1
Employee
1,540 Views
The item you link to is suggesting that you don't have the prerequisite Microsoft software installed. Do you? Have you built Intel Fortran projects on this PC before? Which version of Visual Studio do you have installed? Are you building a 32-bit or 64-bit project? Please post the contents of buildlog.htm from the Debug or Release folder.
0 Kudos
pecan204
Beginner
1,540 Views

Steve, Thank you for replying especially on a Sunday.

I have been using this for a few years. I have visual studio 2003 .net and Intel v9.

I t was working fine two weeks ago.

Ken

------ Build started: Project: fgtaz_6-7-06, Configuration: Debug|Win32 ------

Linking...
Creating temporary file "RSP1.rsp" with contents
[
 /OUT:"C:Documents and SettingskenMy DocumentsBoehm work monitor 2008Monitor_1-18-08GTAnalysisfgtaz.dll" /INCREMENTAL:NO /NOLOGO /DEBUG /PDB:"Debug/fgtaz_6-7-06.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"Debug/fgtaz_6-7-06.lib" /DLL  Debug/util_splnq1.obj Debug/gta_calc_humidity_102604.obj Debug/gp_utherm_2102.obj Debug/gp_gauss.obj Debug/crvfit_main_mod_12-02-06.obj Debug/crvfit_lsqpol.obj Debug/gta_cooling_estimate_21506.obj Debug/gp_seten_2102.obj Debug/gp_efmt.obj Debug/crvfit_xum.obj Debug/crvfit_regpts.obj Debug/util_xlinr2.obj Debug/util_unilini_010904.obj Debug/gta_main_prop_interface_120105.obj Debug/gp_blockdata.obj Debug/util_double_dbin_r3.obj Debug/gta_airflow_estimate_61103.obj Debug/gp_tranp.obj Debug/gp_search_datar_2102.obj Debug/crvfit_deltas_8-12-06.obj Debug/gta_steam_data.obj Debug/gta_calc_new_wtfrac.obj Debug/gp_cphs.obj Debug/crvfit_deltaregpts.obj Debug/gp_out1_2102.obj Debug/util_tlook.obj Debug/gta_effic_polytropic_052605.obj Debug/gp_utran_varfmt.obj Debug/gp_matrix_2102.obj Debug/gp_tranin_2102.obj Debug/gp_react_41502.obj Debug/crvfit_datapackager_1-20-08.obj Debug/gp_thermp.obj Debug/gta_prepare_props_052605.obj Debug/gp_eqlbrm_2102.obj Debug/gp_newof.obj Debug/FGTAZ_online_analysis_1-20-08.obj Debug/DllMain_2-9-06.obj Debug/Errlog.obj "C:Documents and SettingskenMy DocumentsBoehm work monitor 2008FGTAZ dll projectcgtaz_new_assumptions_add_loop_12-28-07mtrxdebugmtrx.lib"
]
Creating command line "Link @"C:Documents and SettingskenMy DocumentsBoehm work monitor 2008FGTAZ dll projectcgtaz_new_assumptions_add_loop_12-28-07fgtaz_6-7-06DebugRSP1.rsp""

Link: executing 'link'
Link: error: could not find 'link'


fgtaz_6-7-06 build failed.


0 Kudos
pecan204
Beginner
1,540 Views

Its 32 bit

0 Kudos
TimP
Honored Contributor III
1,540 Views
If you open the Microsoft C++ command line window (from Start menu), and find that link is available there, it means that ifort doesn't have the Microsoft elements in PATH.
The ifort setup should use the vcvars32.bat (or similar) from the Microsoft installation to add those paths. They should be present when you open the Fortran command line window.
Some possibilities:
Perform a repair on your Intel Fortran installation; This should have a good chance, if it was working before.
Add the full path to the folder including the Microsoft link.exe in the ifort.cfg in your Fortran installation. This is needed, if some software not foreseen by the Fortran installer has changed the PATH in such a way that the Microsoft PATH items don't come in the correct sequence.

0 Kudos
Steven_L_Intel1
Employee
1,540 Views
I suggest an uninstall and reinstall of the Intel Fortran VS integrationn and compiler. I'll comment that PATH is not used here - rather, it's the list of folders under "Executables" in Tools > Options > Intel Fortran.
0 Kudos
pecan204
Beginner
1,540 Views

Mystery Solved!

After reading the suggestions I recalled running registry checker and each time it comes up with bad path for the following:

[HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio7.1Intel FortranVFToolOpt9090IA32]
"BinDir"="$(IFORTInstallDir)Bin;C:Program FilesCommon FilesIntelShared FilesIA32Bin;$(VCInstallDir)bin;$(VSInstallDir)Common7ToolsBin;$(VSInstallDir)Common7Tools;$(VSInstallDir)Common7ide;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem"

[HKEY_CURRENT_USEREnvironment]
"LIB"="c:Program FilesMicrosoft Visual Studio .NET 2003v7Lib"

Apparently it had removed them. I resolred that days backup and it now works.

Not sure why they are considered bad paths?

Thanks

Ken

0 Kudos
Steven_L_Intel1
Employee
1,540 Views
Because the registry checker you used did not understand that $(IFORTInstallDir), etc. was a Visual Studio "macro" not visible to it. These strings are used by Visual Studio only.

The moral here is don't delete anything in the registry that you don't understand.
0 Kudos
Reply