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

compile succeeded but no object file

jim_cox
Beginner
422 Views

This is an odd one

Trying to compile a very simple piece of test code

Get messages that suggest compile has succeeded, vis...

1>------ Build started: Project: Nex, Configuration: Debug Win32 ------
1>Compiling...
1>Nex.cpp
1>Build log was saved at "file://d:\\suite\\Programs\\NEX2\\Debug\\BuildLog.htm"
1>Nex - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Then the linker dies

1>Linking... (Intel C++ Environment)
1>xilink: executing 'link'
1>LINK : fatal error LNK1104: cannot open file 'Debug/Nex.obj'
1>Build log was saved at "file://D:\\suite\\Programs\\NEX2\\Debug\\BuildLog.htm"
1>Nex - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I can find a .i file from the preprocessor

But it appears no .obj file is created

Any thoughts as to why not?

Thankx

0 Kudos
1 Solution
JenniferJ
Moderator
422 Views

This is not a bug. It's by design. When "/EP" is specified, the compiler (icl or cl) won't generate .obj file.

Jennifer

View solution in original post

0 Kudos
2 Replies
JenniferJ
Moderator
423 Views

This is not a bug. It's by design. When "/EP" is specified, the compiler (icl or cl) won't generate .obj file.

Jennifer

0 Kudos
jim_cox
Beginner
422 Views

D'oh

:)

Thankx

0 Kudos
Reply