Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7953 Discussions

Way to create object files with *.o extension in windows

Kunal_Rao
Novice
272 Views
Hi
I am trying to port an application from Linux to Windows using Intel compilers (using Cygwin env.). I am able to compile the application and the object files are created. While linking the object files to create the executable, it looks for object files with *.o extension but here in Windows we get with *.obj extension.
Is there a way that I can create the object files with *.o extension even on the Windows side as is done in Linux ?
Thanks & Regards,
Kunal
0 Kudos
2 Replies
JenniferJ
Moderator
272 Views
use "/FoTest.o" to generate test.o instead of test.obj.
It only changes the file name, the object format is still for Windows.

Jennifer
0 Kudos
Kunal_Rao
Novice
272 Views
Thanks Jennifer !! It worked ..
Regards,
Kunal
0 Kudos
Reply