Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Peter_S_8
Beginner
51 Views

precompiled header

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
51 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

 

Reply