[Tango Distribution] What is the right place for Xstring.h file?
|
|
---|---|
Hello all, I just built a Tango 9.2.5 Windows distribution, the "Xstring.h" file (with a minus 'S') is under "helpers" folder. But, in the Tango9 Linux distribution the file under "helpers" folder : - is named "XString.h" - does not contain any code but a "pragma" to warn the user to include the "Xstring.h" file located in the upper folder. It's confusing! So, I would like to know what is : - the right name of this file? (with a minus 'S' or not) - and where is its place? Thank you for your answer Regards Xavier |
|
|
---|---|
Hi Xavier, What are you calling "the Tango9 Linux distribution"? I just downloaded tango9.2.5a tar.gz file from tango-controls downloads source page (http://www.tango-controls.org/downloads/source/) and I get a file named Xstring.h under lib/cpp/client/helpers/ directory. I don't know how did you get XString.h in your Linux distribution. Kind regards, Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new. |
|
|
---|---|
Hi Reynald, I also built a Tango9.1 and after the "make install" stage, in the "include/tango" folder there is : - a "Xstring.h" file - and the "helpers" folder which contains "XString.h" file. By distribution I mean a ready to use Tango package and not about the sources. Regards, Xavier |
|
|
---|---|
I still don't understand what you mean with "a ready to use Tango package and not about the sources". If you do "make install", this means you are using a source distribution? Where did you get it? In the tango9.2.5a, this file is named Xstring.h and is installed under include/tango folder. So this should answer your question about the right name and location of this file. I hope this helps, Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new. |
|
|
---|---|
OK, I will try to be more clear in my explanations : of course I compiled Tango9 sources for Linux (tar.gz from TangoControl site) and Windows (zip from SourceForge). And I noticed for Windows, the Xstring.h file is under helpers folder. But, for Linux under include/tango folder, I have a Xstring.h file and a folder "helpers" which contains another "XString.h" file. So, as the Xstring.h file is not in the same place under both OS's it is confusing. If I try to compile the same DeviceServer code under both OS's, it will fail on one but succeed on the other! In summary : Windows : one file which is under herlpers folder Linux : two files - Xstring.h under include/tango folder (which contains code to convert string/number in number/strings) - XString.h under include/tango/helpers folder (which contains warning to use the file under include/tango folder) Hope it is more clear. Regards, Xavier |