Building a Fortran code in VS 2019 and oneAPI, I get this error: error #10037: could not find 'link'
Previous posts are not helpful (link in accepted solution is broken). Already checked Desktop development with C++ is installed in Visual Studio and reinstalled oneAPI.
Any other ideas?
As a test, launch the oneAPI command indow (CMD). This should provide an environment defined foe MS VS together with Intel OneAPI.
In the CMD window enter
Expect the MS VS linker to list out its command line options.
If you receive an error message: 'link' is not recognized...
then the environment for MS VS is broken.
Can you build and run an MS VS C++ "Hello World"?
This is a build from within VS? or a build from command line with a oneAPI Command Prompt for Intel64 (or ia32?)
Existing project that you brought over from another system, got from the web? From where does did this Soln and VFProj come?
IF ( existing_project) print*, "what VS and compiler did you build on previously?"
Have you created a new Porject, a Hello World project, and just comfirmed that your VS + Intel Fortran is working? To me that should be test #1.
to summarize - how do you know, or have you confirmed, it's the compiler+VS and not your project?