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

precompiled header

Peter_S_8
Beginner
284 Views

I have an issue here trying to change my solution to precompiled headers.

During the creation process of the header it throws the error #10298 - unable to erase the pchi file as it is used by another process

Running this on the vs compiler works fine.

any ideas?

 

 

0 Kudos
1 Reply
Judith_W_Intel
Employee
284 Views

 

Is the diagnostic correct? Does it work if you disable multisource compilation (compiling multiple files simultaneously when you specify them all on the command line) with the /Q_multisrc- option?

The model for precompiled header usage is that you create one precompiled header and the rest of the source files use that precompiled header so you really shouldn't be trying to create more than one, especially simultaneously. It may work if you're lucky but it is dangerous and a good compiler with warn you about it.

Judy

 

0 Kudos
Reply