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

error - compiled exe is 16bit

olslewfoot
Beginner
7,855 Views

I have a 64 bit Windows7 Enterprise PC with icore7 and 2.4Ghz.

I have Intel Parallel Studio XE2013 alongside MS Visual Studio 2010 which I'm a new-be with!

When I compile my fortran code the compilation completes but when the application launches I get a Windows OS message saying that the application is 16bit and will not run on the 64 bit PC.

I'm using the ia32 compiler which I understood would be ok on the 64 bit PC.

Can you suggest what I've got wrong or what I can do to rectify this please?

Thanks

John

0 Kudos
43 Replies
mecej4
Honored Contributor III
584 Views

In fact, the file misnamed as bord_ks.exe is a library with 885 .OBJ files in it -- a pretty hefty library --, as these tests show::

C:\TEMP > lib /list bord_ks.exe | wc

    888     898   12679

Let's us get the names of the first few .OBJ files contained in the archive:

C:\TEMP > lib /list bord_ks.exe | head
Microsoft (R) Library Manager Version 11.00.60315.1
Copyright (C) Microsoft Corporation. All rights reserved.

t2dfort.obj
gracestop.obj
special_plante.obj
p_imin.obj
p_mpi_alltoallv_i.obj
p_iread_c.obj
p_iwrit_c.obj

See what the Cygwin utility "file" has to say about the type of the file.

C:\TEMP > file bord_ks.exe

bord_ks.exe: current ar archive

It is possible that you have a "solution" with more than one "project" (or a makefile with more than one target), where one of the targets is a library but is mistakenly given a name with the suffix .EXE.

0 Kudos
olslewfoot
Beginner
584 Views

Hi all

Ok - sorry for the hiatus - but I have done a complete reinstall and clean - and sorted out the problems with access to VS Common tools - so the install is now fully integrated and I can successfully compile and run hello_world at the command line! Progress!!

As the PC is a corporate machine there were issues with admin rights which were solved.

I still have the same error when compiling my hydrodynamic model (bord_ks) through the python script - and it still works with gfortran???

The compiler is working successfully now though - so I have to resort to the model code.

Thanks for all you help

John

0 Kudos
Reply