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
266 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 36

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 36

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 36

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now