Page 1 of 1

getting 'cannot resolve unit name'

Posted: Mon Sep 28, 2009 8:31 pm
by 13051191
teesurfa

I have two projects that share the same file and it looks like all the paths are correct for the 2nd project that I added to the solution. Any places to check as to why I get this for the 2nd project (works fine for the 1st project and the error message is in the shared file)?

Re: getting 'cannot resolve unit name'

Posted: Tue Sep 29, 2009 8:32 am
by narcis
Hi dunion,

Can you successfully compile both projects separately? In that case you may want to try what was suggested in the following CodeGear/Embarcadero forums threads:

https://forums.embarcadero.com/thread.j ... eadID=7702
https://forums.codegear.com/thread.jspa ... eID=151476

Hope this helps!

Re: getting 'cannot resolve unit name'

Posted: Tue Sep 29, 2009 3:25 pm
by 13051191
Interesting. i get more red underlines of a mixed up IDE than before but one project builds. For the other I get "Unit TeeSurfa was compiled with a different version of TeEngine.TChartSeries". That sounds like some sort of path problem but it looks like the paths are all OK. I did a clean and build. Is there some ordering of the teechart units in the using I should look at?

Re: getting 'cannot resolve unit name'

Posted: Tue Sep 29, 2009 4:08 pm
by 13051191
I removed the paths to the teechart lib, bin, and inc folder from the 'working' project. Note that $(TEELIBPATH) was 'inherited'. I put back $(TEEINCPATH) only $(TEELIBPATH) still inheritied, reproduced the error with the other project. Put back all three, but because of duplication I had to manually browse to and put back explicit paths, and I put a '\' on the end of the path to the lib folder to make it not get removed as a duplicate. After testing a few path order options with (only) the lib path before the bin and include paths the building project builds again.

I duplicated that change in the other project and it also gets past that error.

So I'm all set, but FYI maybe there are conflicting versions in the 8.04 VCL version somewhere.

Re: getting 'cannot resolve unit name'

Posted: Wed Sep 30, 2009 7:22 am
by narcis
Hi dunion,

I'm glad to hear you sorted this out.
For the other I get "Unit TeeSurfa was compiled with a different version of TeEngine.TChartSeries".
This indicates that your IDE was still referencing old version packages. You'll find several topics on this forums speaking about that.