- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
I have been googling this error and found some threads regarding the solutions to fix this error. However, I could not fix it yet.
I am running VS2015 with Intel Fortran. When I compile, it gave me this error:
error PRJ0019: A tool returned an error code
The following is the build log:
Linking...
Link /OUT:"Debug\Console2.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST:NO /DEBUG /PDB:"C:\Users\Truong\Desktop\DrAlekseenko_project\test_project\Console2\Console2\Debug\Console2.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"C:\Users\Truong\Desktop\DrAlekseenko_project\test_project\Console2\Console2\Debug\Console2.lib" -qm32 "Debug\mainpgm.obj" link: extra operand '/NOLOGO' Try 'link --help' for more information. Console2 : error PRJ0019: A tool returned an error code Console2 - 1 error(s), 0 warning(s)
I am not sure what the issue is. Please help.
Thank you very much,
Truong
- Balises:
- Intel® Fortran Compiler
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
You probably have Cygwin or some Unix/Linux compatibility package installed, and the Unix Link utility (to create file links) is found before the VC linker (also called Link) on %PATH%.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi mecej4,
That is indeed true. I have cygwin installed. What would be your recommendation? Should I uninstalled it?
Thank you very much
Sincerely,
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
While mecej4 is, I believe correct, normally this isn't an issue in Visual Studio because VS sets up its own PATH using the list found in Tools > Options > Intel Compilers and Tools > Visual Fortran > Compilers. Since you're using VS2015, I think the ultimate cause of this is that when you installed VS2015 you let it take the defaults, which means no Visual C++ and no VS linker.
Rerun the VS2015 install, select Modify (or Change), and check the box for C++ language support. See https://software.intel.com/en-us/articles/installing-visual-studio-2015-for-use-with-intel-compilers for more details.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thanks Steve and mecej4,
It works after I reinstall VS2015 with C++ language support.
Thank you very much again.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
By the way, the Intel install warns you of the problem, but lets you proceed anyway. I have argued with the install team that the install should just exit after noticing no C++ support was installed, even if you can fix it up later. My experience is that most users ignore the warning if the install can continue and then don't go back to fix the problem.

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable