- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page