You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2022/09/20 11:25:42 UTC

[GitHub] [nifi-minifi-cpp] szaszm commented on a diff in pull request #1416: MINIFICPP-1936 - Python link error

szaszm commented on code in PR #1416:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1416#discussion_r975229716


##########
extensions/script/pythonloader/PyProcLoader.cpp:
##########
@@ -35,5 +35,11 @@ static void deinit() {
   // TODO(adebreceni): deinitialization is not implemented
 }
 
+extern "C" {
+  // request this module (shared library) to be opened into the global namespace, exposing
+  // the symbols of the python library
+  int LOAD_MODULE_AS_GLOBAL = 1;

Review Comment:
   Would it still work if we made it const? If yes, this should be const.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org