getting 'cannot resolve unit name'

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
dunion
Newbie
Newbie
Posts: 24
Joined: Fri Dec 19, 2008 12:00 am

getting 'cannot resolve unit name'

Post by dunion » Mon Sep 28, 2009 8:31 pm

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)?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: getting 'cannot resolve unit name'

Post by Narcís » Tue Sep 29, 2009 8:32 am

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!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

dunion
Newbie
Newbie
Posts: 24
Joined: Fri Dec 19, 2008 12:00 am

Re: getting 'cannot resolve unit name'

Post by dunion » Tue Sep 29, 2009 3:25 pm

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?

dunion
Newbie
Newbie
Posts: 24
Joined: Fri Dec 19, 2008 12:00 am

Re: getting 'cannot resolve unit name'

Post by dunion » Tue Sep 29, 2009 4:08 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: getting 'cannot resolve unit name'

Post by Narcís » Wed Sep 30, 2009 7:22 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply