Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
7764 Discussions

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

Kunal_Rao
Novice
155 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
155 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
Kunal_Rao
Novice
155 Views
Thanks Jennifer !! It worked ..
Regards,
Kunal
Reply