Reputation: 219
I'm using Delphi 2010 to create a SOAP Server. The server is created as a ISAPI/NSAPI DLL. I then add an interface with some sample methods.
If I try and build this project I get this compiler error:
Building Project1.dproj (Debug configuration) [DCC Fatal Error] Unit1.pas(6): F2063 Could not compile used unit 'msxml.pas' Failed Elapsed time: 00:00:01.5
Where should I start looking to resolve this issue?
Regards AJ
Upvotes: 1
Views: 1081
Reputation: 25678
Your error message is strange, because as Rob Kennedy says, that message is usually an summary message that's displayed after an number of other, more specific messages. I've NEVER seen it all by itself. Also the msxml.pas file is provided by Delphi and I've never seen a Delphi-provided unit that doesn't compile. (And I did make a test on my Delphi 2010, msxml.pas does compile fine). Ignore the messages asking you to remove the .pas file from your search path or from your project, that can't possibly help because the .pas file itself is ok and compiles just fine. Your problem is deeper.
Here's what I suspect: Some of your Delphi-provided DCU files somehow became corrupted. It might be the actual msxml.dcu file, but it might as well be a DCU file required by msxml.dcu!
Debugging steps:
Upvotes: 2
Reputation: 1364
looks like you have added it in one of the paths by mistake or the program has, just remove it and you should be fine
Upvotes: 0
Reputation: 163247
Msxml.pas is a unit included with Delphi. You shouldn't need to compile it yourself, so make sure you haven't added that source file to your project. Delphi will use the DCU file that Embarcadero shipped with the compiler. Also make sure you haven't added $(DELPHI)\Source to Delphi's search path, or else Delphi may try to recompile it for you.
Upvotes: 3