I am using BOOST library on UNIX Sun platform which is a 64 bit processor.
I had used BOOST UUID but faced some issues related to compatibility of iostream and stlport4 libraries. I am using this shared object library which is relevant to DataStage.
I am looking for another such UUID generator which works on similar lines as that of BOOST UUID also it should be utilized for 64 bit processor.
Please let me know if OOID is a better option than that of BOOST.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wouldn't say OOID is better than BOOST UUID. I have written OOID as a stripped-down version of the BOOST lib. Also I'm not fully aware of your usage scenario and I would fail to be fair expressing an opinion. That said, I think OOID cover most needs and that it wouldn't hurt if you give it a try. You can read the file cli.cpp for usage examples. If you encounter any difficulty, please let me know. -Kenneth
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looks like array.h file requires some more includes! I have incorporated the ooid directory in my system, could see some compilation issues!
Please let me know what should be included to eliminate these errors!
(dnbGkm) $ make
/dnb/opt/SUNWspro/prod/bin/CC -dalign -library=iostream -O -PIC -m64 -I /home/ab15609/redis-2.6.9/deps/hiredis -I /dnb/opt/IBM/InformationServer91/Server/branded_odbc/include -c ooidEx.cpp -I /home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 59: Error: Too few arguments for template std::reverse_iterator<kashmir::T*>.
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 70: Where: While specializing "kashmir::array<kashmir::T, kashmir::N="">".
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 70: Where: Specialized in non-template code.
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 63: Error: Too few arguments for template std::reverse_iterator<const kashmir::T*="">.
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 70: Where: While specializing "kashmir::array<kashmir::T, kashmir::N="">".
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 70: Where: Specialized in non-template code.
2 Error(s) detected.
*** Error code 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
it looks like a version conflict. You can check out the latest SVN code from sourceforge, instead of using the tar.gz file, which I think it's a bit outdated.
Please, let me know if the issue persists. I don't have access to a unix box right now but I will review the issue later. Also, feel free to modify the code as you see fit.
Last edit: Kenneth Laskoski 2014-03-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Kenneth for the quick response! But I think its a conflict of stlport4 and cstd libraries. Since, the reverse iterator is expecting 1 parameter (as per cstd) and the actual code contains two parameters.
Please let me know if you have encountered such issues!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Erin,
Please note that this is a personal project of mine and I'm at work right
now. I'll check the URL as soon as I get home, which should occur in 2 to 3
hours.
I'm sorry I forgot to send this email yesterday. Well, I tested the command [svn checkout svn://svn.code.sf.net/p/ooid/code ooid-code] and it worked
for me, maybe because I already have some kind o password configured in my
environment. Anyway I attached a copy of the code base in this email.
Hi Kenneth,
I am using BOOST library on UNIX Sun platform which is a 64 bit processor.
I had used BOOST UUID but faced some issues related to compatibility of iostream and stlport4 libraries. I am using this shared object library which is relevant to DataStage.
I am looking for another such UUID generator which works on similar lines as that of BOOST UUID also it should be utilized for 64 bit processor.
Please let me know if OOID is a better option than that of BOOST.
Hi Sneha,
I wouldn't say OOID is better than BOOST UUID. I have written OOID as a stripped-down version of the BOOST lib. Also I'm not fully aware of your usage scenario and I would fail to be fair expressing an opinion. That said, I think OOID cover most needs and that it wouldn't hurt if you give it a try. You can read the file cli.cpp for usage examples. If you encounter any difficulty, please let me know. -Kenneth
Hi Kenneth,
I am looking for a functionality that would create a unique ID that of given below.
boost::uuids::string_generator gen;
boost::uuids::uuid u2 = gen(s);
u = to_string(u2);
Please recommend any function from OOID library that works on similar lines.
I have checked cli.cpp file, please emphasize on the same.
Also, If I would try to use the ooid library, do i have to include just ooid header files instead of libraries and en corporate in my system. -- Sneha
Hi Sneha,
there is a convenience constructor that make a UUID from a C string, i.e. you have to call the c_str() function to use it with a std::string.
You can write a convenience to_string() function using the stringstream class:
And yes, this is a header only lib, you don't need to link with any code at all.
Hi Kenneth,
Looks like array.h file requires some more includes! I have incorporated the ooid directory in my system, could see some compilation issues!
Please let me know what should be included to eliminate these errors!
(dnbGkm) $ make
/dnb/opt/SUNWspro/prod/bin/CC -dalign -library=iostream -O -PIC -m64 -I /home/ab15609/redis-2.6.9/deps/hiredis -I /dnb/opt/IBM/InformationServer91/Server/branded_odbc/include -c ooidEx.cpp -I /home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 59: Error: Too few arguments for template std::reverse_iterator<kashmir::T*>.
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 70: Where: While specializing "kashmir::array<kashmir::T, kashmir::N="">".
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 70: Where: Specialized in non-template code.
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 63: Error: Too few arguments for template std::reverse_iterator<const kashmir::T*="">.
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 70: Where: While specializing "kashmir::array<kashmir::T, kashmir::N="">".
"/home/ab36936/DnbDSComponents_GKM/dnbGkm/ooid/kashmir/array.h", line 70: Where: Specialized in non-template code.
2 Error(s) detected.
*** Error code 2
Hi Sneha,
it looks like a version conflict. You can check out the latest SVN code from sourceforge, instead of using the tar.gz file, which I think it's a bit outdated.
Please, let me know if the issue persists. I don't have access to a unix box right now but I will review the issue later. Also, feel free to modify the code as you see fit.
Last edit: Kenneth Laskoski 2014-03-12
Hi Sneha,
this post may help you:
http://stackoverflow.com/questions/4481379/template-arguments-to-template-functions
Thanks Kenneth for the quick response! But I think its a conflict of stlport4 and cstd libraries. Since, the reverse iterator is expecting 1 parameter (as per cstd) and the actual code contains two parameters.
Please let me know if you have encountered such issues!
Hi Kenneth,
I have gone through the link already. Need to understand how can I fix this issue.
Thank you for quick response again!
Is
svn checkout svn://svn.code.sf.net/p/ooid/code/ ooid-code
still valid for getting the latest ooid code? I was unable to connect to the repository at that URL.
Hi Erin,
Please note that this is a personal project of mine and I'm at work right
now. I'll check the URL as soon as I get home, which should occur in 2 to 3
hours.
Kenneth
On Monday, September 8, 2014, Erin Isaachsen eisaachsen@users.sf.net
wrote:
Hi Erin,
I'm sorry I forgot to send this email yesterday. Well, I tested the command
[svn checkout svn://svn.code.sf.net/p/ooid/code ooid-code] and it worked
for me, maybe because I already have some kind o password configured in my
environment. Anyway I attached a copy of the code base in this email.
Sincerely,
Kenneth
On Mon, Sep 8, 2014 at 5:19 PM, Erin Isaachsen eisaachsen@users.sf.net
wrote: