cgo with zopen header files #758
fswarbrick
started this conversation in
General
Replies: 2 comments 3 replies
-
|
the zopen time.h is coming from zoslib which is intended to be used with target=zosv2r4. However, we do aim to fix soon so that it can be built on V2R5. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Ah, I understand the issue now. Some new things were defined for z/OS 2.5 (not existing before then), and the zoslib time.h definition conflicts with the supplied time.h. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I do a "go build" for a project that uses cgo, if the zopen header for time.h (${HOME}/zopen/usr/local/include/time.h) is included, it causes some "redefinition issues". Here is what I am seeing:
If I don't include ${HOME}/zopen/usr/local/include then it compiles just fine.
This is on z/OS 2.5 with IBM C/C++ for Open Enterprise Languages on z/OS (clang-14) and IBM Open Enterprise SDK for Go (go1.22.2 zos/s390x). And obviously zOpen tools.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions