Link to home
Start Free TrialLog in
Avatar of caber
caber

asked on

error MIDL1004

Why do I get this compilation error when trying to build my project?

"command line error MIDL1004 : cannot execute C preprocessor cl.exe"

I have changed the computer on which I work on. It's a project that's been going on for more than a year so this error must have something to do with the change of computer. There are no codechanges.

We use SourceSafe so what I did before changing pc was to check in all files and then set a new working folder on my new pc before building and getting the above errmess. Another thing is that when I tried this at home last night, there was no problem. The build succeeded... I was logged on as a local admin when it worked and today when I'm logged on as a user who's network domain admin as well as local admin on the new pc it doesn't work.

This is so strange, can anyone help me out??? I have to make it work quickly...

Thanks for your help



ASKER CERTIFIED SOLUTION
Avatar of Roshan Davis
Roshan Davis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of caber
caber

ASKER

I've tried that... that doesn't seem to be the problem, any other ideas?
Then I think your ild file is not latest,
means - not checked in, and yuor project contains some interface functions that are not specified in the idl ...etc

check in that way

Wish u GOOD LUCK
Avatar of caber

ASKER

ALL files where checked in at the time. I only get this error when logged on to a domain, not when I'm logged onto my local computer as local admin. As local admin it works fine.
Avatar of caber

ASKER

ALL files where checked in at the time. I only get this error when logged on to a domain, not when I'm logged onto my local computer as local admin. As local admin it works fine.
Is there any directory is ReadOnly ...?
Or any permission problem ?

Roshmon

Avatar of caber

ASKER

Yes, maybe permission problems, but I don't know of what kind or what to do about it. Ideas???

No read only directories.
Avatar of jkr
Try typing "cl.exe" on the command line - if that doesn't work either, execute the 'vcvars32.bat' file (or set it to be executed when you start if it's Win9x - on NT/W2k, add the paths mentioned in this file to your environment).
Avatar of caber

ASKER

thanks I'll try that
Dear caber

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to split between

     "roshmon and jkr"

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: https://www.experts-exchange.com/commspt/

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
Force accepted

jkr
There will be a separate question with points for your help.

** Mindphaser - Community Support Moderator **