xls lib not found

TMS Component Pack, XE7 Builder



For some reason, I need to explicitly include a link to this particular TMS lib

#pragma link "tmsxlsdXE7.lib"



even though tmsxlsdXE7.lib is clearly in the TMS lib path with the other TMS libs



Otherwise, I get TAdvGridExcelIO unresolved external errors.



I don't need to do this for any other TMS lib



This has been true for several versions



Any ideas?



thanks



Kevin

















Normally, when you add a component from package X, the IDE should be smart enough to add package X.lib file to your project to link with. With the #pragma statement you force from code to link with this .LIB in case the reference is not in the project file. 
When you create a new project and drop TAdvGridExcelIO on a new form, is the IDE also forgetting to add the .LIB reference to the project files?


A new VCL project did not require the explicit link, and I found that tmsxlsdXE7.lib was missing from cbproj file. Adding it to <AllPackageLibs> fixed the problem



Thanks for the tip.



Kevin