- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I compiled the native C++ implementation according to this tutorial, only the obj file was generated, not the executable file. My toolkit is the latest version, and the system is win10. I want to know why this happens.
icx.exe /c /Qm64 /Zi /nologo /W3 /O2 /Ob1 /Oi /D NDEBUG /D _CONSOLE /D _UNICODE /D UNICODE /EHsc /MD /GS /Gy /Zc:forScope /Fo"x64\Release\\" /TP src\main.cpp src\mandelbrot.cpp src\timer.cpp
This is the command I use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We see the option '/Fo' followed by <path of object files that need to be generated> i.e "x64/Release" in your compiling command.
'/Fo' flag is meant to accumulate the object files at a specified path or directory. So if we use '/Fo' we get only (.obj) files in the /Fo path i.e "x64/Release", but not (.exe) .
So ignore '/Fo' option too!
Please use the below command and try re-compiling the program:
icx.exe /Qm64 /Zi /nologo /W3 /O2 /Ob1 /Oi /D NDEBUG /D _CONSOLE /D _UNICODE /D UNICODE /EHsc /MD /GS /Gy /Zc:forScope /TP src\main.cpp src\mandelbrot.cpp src\timer.cpp
Please refer to the below screenshot.
Thanks & Regards,
Santosh
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
We see that you used '/c' option in your compilation command. Using '/c' option will stop linking and will generate object(.o) file, instead of executable(.exe).
So try removing '\c' option and re-compile to generate .exe file as below:
icx.exe /Qm64 /Zi /nologo /W3 /O2 /Ob1 /Oi /D NDEBUG /D _CONSOLE /D _UNICODE /D UNICODE /EHsc /MD /GS /Gy /Zc:forScope /TP src\main.cpp src\mandelbrot.cpp src\timer.cpp
Please refer to the below screenshot.
Thanks & Regards,
Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I removed '\c' option and re-compiled it, but the executable file still wasn't generated.
icx.exe /Qm64 /Zi /nologo /W3 /O2 /Ob1 /Oi /D NDEBUG /D _CONSOLE /D _UNICODE /D UNICODE /EHsc /MD /GS /Gy /Zc:forScope /Fo"x64\Release\\" /TP src\main.cpp src\mandelbrot.cpp src\timer.cpp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We see the option '/Fo' followed by <path of object files that need to be generated> i.e "x64/Release" in your compiling command.
'/Fo' flag is meant to accumulate the object files at a specified path or directory. So if we use '/Fo' we get only (.obj) files in the /Fo path i.e "x64/Release", but not (.exe) .
So ignore '/Fo' option too!
Please use the below command and try re-compiling the program:
icx.exe /Qm64 /Zi /nologo /W3 /O2 /Ob1 /Oi /D NDEBUG /D _CONSOLE /D _UNICODE /D UNICODE /EHsc /MD /GS /Gy /Zc:forScope /TP src\main.cpp src\mandelbrot.cpp src\timer.cpp
Please refer to the below screenshot.
Thanks & Regards,
Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting as a solution.
As your issue has been resolved, we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.
Have a Good day!
Thanks & Regards,
Santosh

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page