-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I was trying to do the sample code as shown in the Quick Start here
The quick start says to use this syntax to build the source file:
$ xlclang++ -I path/to/zoslib/include -L path/to/build/lib -lzoslib random.cc -o random
This failed for me. I had to do the following:
$ xlclang++ -qascii -I ~/zopen/dev/zoslib/include -L ~/zopen/dev/zoslib/lib -o random random.cc -lzoslib
With that said, that failed as well because the zopen/dev/zoslib/include/zos-getentropy.h file was different. Compare to
this
and the file on the file system.
I edited the include file so that __getentropy(...) was defined as getentropy()
Note, the zoslib README says IBM C/C++ V2.3.1, but I am using 2.4.1.
After getting to build, the result with the version string is broken.
$ ./random 2
ZOSLIB version: vMAJOR_VERSION.MINOR_VERSION.PATCH_VERSION
Generating 2 random values
Random index: 0
4 A2 87 D7 BC BE 1D 1F EA B4
Random index: 1
63 90 33 C A3 5B 5B 38 1F C8
Metadata
Metadata
Assignees
Labels
No labels