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
268 Views
Last Modified: 2012-05-05
how to solve it ?
0
Comment
Question by:davizinx
  • 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
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.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

805 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