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

Output object files as *.o instead of *.obj

Wee_Beng_T_
Beginner
1,376 Views

Hi,

May I know if it's possible to generate object file with extension .o instead of .obj automatically through some options in the compiler?

I can't seem to find it.

Thank you.

0 Kudos
1 Reply
TimP
Honored Contributor III
1,376 Views

I don't believe there's a compiler option. As the usual reason for doing this is to support a degree of Makefile portability, we may accomplish itby addingMakefile rules for compilers whichbuild .obj e.g.

.f.o:

$(FC) $(FFLAGS) -c $*.f

mv $*.obj $*.o

Consequences of this usage vary between 32-bit and 64-bit Windows. It is also possible to set up the entire Makefile with names for object and exe extension, so as to switch them when switching compilers and OS.

I think that either of these schemes are considered to be the property of the 5% fringe of Windows developers who develop for multiple operating systems and don't get cooperation from software tools vendors.

0 Kudos
Reply