GUIDs in a C++ Linux GCC app
Solution 1
This Internet Draft describes one type of UUID in great details and I have used a similar approach with great success when I needed a UUID implementation and could not link to an existing library for architectural reasons.
This article provides a good overview.
Solution 2
There is libuuid.
Solution 3
If you are going to use something then an Internet standard would be a good idea:
Check out RFC (Request For Comment).
The one I know that is specific to GUID is: RFC 4122
Walter Colchado
Updated on June 04, 2022Comments
-
Walter Colchado almost 2 years
I'm working with Oracle 10g R2 10.2.0.1 - 64 Bits. I migrated my web application from VS2010 (running on Win7 32 bits) to VS2012 (running on Win8 64Bits) and the app runs without any problem when I'm using Visual Studio 2012 debug.
My problem begins when I published to IIS (Win 8 - 64bits). The application runs but Oracle doesn't return any data and IIS doesn't return any error. I tried to make IIS send errors to the browser and also show detailed errors but my
.aspx
is still showing the page and no errors showed.Thanks in advance
-
curtisk about 11 yearsYou'll have to provide more info/code samples for us to help. How are you currently trying to do it?
-
Admin about 11 yearsIs your page executing server side code? Does your final HTML to the browser has any server side code dumped in it?
-
Nick.McDermaid about 11 yearsYou really need to provide more info - can you verify that the SQL is being executed but returning no data, or is there an error occurring beforehand that stops the SQL being executed? Only you can work his out, we can't.
-
-
nnn over 15 yearsFrom looking at that second link, I found libuuid (linux.die.net/man/3/libuuid), which seems to be exactly what I need. Thanks!
-
David Segonds over 15 yearsI am glad I was able to help.
-
jamil ahmed over 14 yearsIt would be wonderful if there were a non-LGPL (and non-GPL) library.
-
Rob over 14 yearsIt would be useful if down-voters would leave a comment. Sigh.
-
vpalmu about 12 years@jeffamaphone: Why do you care about LGPL libraries when targeting Linux C++? The C++ standard library is LGPL.