Repository navigation
[FEATURE] add library init routine - #2966
Conversation
| procedures need to be run at startup (and preferably only once). | ||
|
|
||
| */ | ||
|
|
There was a problem hiding this comment.
don't we need an: extern xerces_init xinit; ?
There was a problem hiding this comment.
only if we want to expose it to external callers, right? which we dont want to?
Global variables have global scope, and can be used anywhere in the program. Like functions, you must use a forward declaration (via keyword extern) to use a global variable defined in another file. By default, non-const global variables have external linkage.Jun 19, 2007
so maybe we should make it const
There was a problem hiding this comment.
"By default, non-const variables declared outside of a block are assumed to be external. However, const variables declared outside of a block are assumed to be internal."
Yes I guess we need const or static to declare internal linkage.
There was a problem hiding this comment.
I have just added const on github, lets see whether the tests work
| } | ||
|
|
||
| }; | ||
| xerces_init xinit; |
|
what happened to the windows build? |
|
Hmm unfortunately it did not upload to CDash. I increased the retention time of the build logs for CI on Jenkins (which was the reason for the deletion). |
|
rebuild win |
|
probably does not work after it was merged |
|
hmm was the header file added to the cmake? |
fixes #352