?
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
Medium Priority
?
276 Views
Last Modified: 2012-05-05
how to solve it ?
0
Comment
Question by:davizinx
  • 4
  • 3
  • 3
  • +1
11 Comments
 
LVL 101

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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 101

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 38

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 38

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 101

Expert Comment

by:mlmcc
ID: 24326039
What is the solution?

mlmcc
0
 
LVL 38

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

Independent Software Vendors: 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!

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Integration Management Part 2
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

864 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