Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28537 Discussions

Error #10298 when compile-link in a Fortran command-line project in VS2022

Anders_S_1
New Contributor III
1,782 Views

Hi,

I got error code #10298 when running ifort on the comman line in a VS2022 command-line project. I have attached a minimized version of the project and code hoping you will be able to reproduce the error or, better, tell what is wrong.

Some of the files could not be attached, which you can read in the attached error message. I think it should be possible to reproduce the error with the supplied files and pictures.

 

Best regards

Anders S

 

Labels (1)
0 Kudos
1 Solution
mecej4
Honored Contributor III
1,745 Views

The /MP option is required to precede all other options. With that correction, I found that your Quickwin app could be built and run normally.

Regarding posting here: instead of attaching screenshots please zip up all the text files and attach the zip file. The forum software will probably not attempt to check the contents of the zip file.

View solution in original post

0 Kudos
4 Replies
Anders_S_1
New Contributor III
1,767 Views

Hi again,

V2022, Base Tools and HPC Tools were installed second half of March 2023, i.e. last versions I think.

Best regards

Anders S

0 Kudos
mecej4
Honored Contributor III
1,746 Views

The /MP option is required to precede all other options. With that correction, I found that your Quickwin app could be built and run normally.

Regarding posting here: instead of attaching screenshots please zip up all the text files and attach the zip file. The forum software will probably not attempt to check the contents of the zip file.

0 Kudos
Anders_S_1
New Contributor III
1,709 Views

Hi mecej4,

Thanks for a rapid response! 

I put /MP first in the bat-file for ifort compile and link but I still get error #10298 (see attachment).

I have chosen x64 and double precision integers and reals in VS.

Best regards

Anders S

0 Kudos
Anders_S_1
New Contributor III
1,707 Views

Hi again,

To be more specific, I used the windows-fortran command-line project without sample code

in VS2022.

Best regards

Anders S

0 Kudos
Reply