Solved

[Fatal Error] myunitprin.pas(78): Unit anotherunit.pas was compiled with a different version of myunitprin.pas.Last_information

Posted on 2008-10-02
11
269 Views
Last Modified: 2012-05-05
how to solve it ?
0
Comment
Question by:davizinx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
  • +1
11 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 22631174
Recompile anotherunit.pas with the newer myunitprin.pas

mlmcc
0
 
LVL 6

Expert Comment

by:JosephGlosz
ID: 22631193
make sure you have only one copy of myunitprin.pas anywhere.  Delete any and ALL myunitprin.dcu files you may have.  Different projects may output the resulting DCUs to different folders.

Then make sure your environment and/or project paths include the location of the pas file.

Then just a 'BUILD' (not compile) should do the trick.
0
 

Author Comment

by:davizinx
ID: 22634320
i do that... but not solve
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 100

Expert Comment

by:mlmcc
ID: 22638059
Did you recompile anotherunit.pas.

mlmcc
0
 

Author Comment

by:davizinx
ID: 22638287
i do that too.
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 22645248
delete all the .dcu files in your directories
(not the Delphi directories !!!)
recompile afterwards
0
 

Author Comment

by:davizinx
ID: 22646415

[Fatal Error] anotherunit.pas(35): File not found: 'anotherunit.dcu'

0
 

Accepted Solution

by:
davizinx earned 0 total points
ID: 22663861
...?
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 24322655
oo, and deleting the .dcu wasn't a clue ???
because of the delete the compiler had to recompile that used unit
and then it didn't find the sources

your solution was to create (or copy from other folder) the anotherunit.pas
or remove the anotherunit from the used
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24326039
What is the solution?

mlmcc
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 24352529
2 dots was the solution !!!
i'll try and use that in my code too next time

or was the question mark part of the solution ?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
code issue 8 181
Drag & Drop... Data from one grid to another 2 47
Not able to call Delphi XE10 dll function from Delphi 6.0 4 48
Delphi, TImage, Png 2 19
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question