Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
7568 Discussions

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

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