Fix missing includes

The openfhe-development GitHub project has removed the ability for me to file issues or send pull requests anymore. I have a simple patch that fixes some missing includes (which break Google’s internal build of OpenFHE); we have internal patches to workaround it, but I figured I should upstream some of these trivial fixes.

diff --git a/src/core/include/utils/memory.h b/src/core/include/utils/memory.h
index ccd71cd2..a4d637c8 100644
--- a/src/core/include/utils/memory.h
+++ b/src/core/include/utils/memory.h
@@ -38,6 +38,7 @@
 
 #include <cstdint>
 #include <cstddef>
+#include <iterator>
 #include <utility>
 #include <vector>
 
diff --git a/src/core/lib/math/discretegaussiangeneratorgeneric.cpp b/src/core/lib/math/discretegaussiangeneratorgeneric.cpp
index 5215a9d0..eef38c88 100644
--- a/src/core/lib/math/discretegaussiangeneratorgeneric.cpp
+++ b/src/core/lib/math/discretegaussiangeneratorgeneric.cpp
@@ -47,6 +47,7 @@
 #include "utils/exception.h"
 #include "utils/inttypes.h"
 
+#include <algorithm>
 #include <cmath>
 #include <memory>
 #include <random>
diff --git a/src/core/lib/utils/demangle.cpp b/src/core/lib/utils/demangle.cpp
index ee476a16..013d921d 100644
--- a/src/core/lib/utils/demangle.cpp
+++ b/src/core/lib/utils/demangle.cpp
@@ -29,7 +29,9 @@
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 //==================================================================================
 #include "utils/demangle.h"
-#include <memory>
+
+#include <cstdlib>
+#include <string>
 
 #if defined(__clang__) || defined(__GNUC__)
     #include <cxxabi.h>
diff --git a/src/core/lib/utils/get-call-stack.cpp b/src/core/lib/utils/get-call-stack.cpp
index 7b0bccd2..e961f0ae 100644
--- a/src/core/lib/utils/get-call-stack.cpp
+++ b/src/core/lib/utils/get-call-stack.cpp
@@ -35,6 +35,7 @@
 #include "utils/demangle.h"
 
 #include <execinfo.h>
+#include <cstdlib>
 #include <cxxabi.h>
 #include <memory>
 // clang-format on
diff --git a/src/pke/include/scheme/ckksrns/gen-cryptocontext-ckksrns-internal.h b/src/pke/include/scheme/ckksrns/gen-cryptocontext-ckksrns-internal.h
index f368f9b3..5874fec3 100644
--- a/src/pke/include/scheme/ckksrns/gen-cryptocontext-ckksrns-internal.h
+++ b/src/pke/include/scheme/ckksrns/gen-cryptocontext-ckksrns-internal.h
@@ -38,6 +38,7 @@
 
 #include "encoding/encodingparams.h"
 #include "constants.h"
+#include "cryptocontext.h"
 #include "utils/exception.h"
 #include "scheme/scheme-utils.h"
 #include "scheme/scheme-id.h"

Hi @j2kun,

We’ve restricted the ability to create issues for public users (as we had some issues created that were simply questions on OpenFHE). The issues are intended to be used only to report actual bugs or create requests. It is more efficient when questions are posted at the Discourse forum, i.e., here.

Anyone who is willing to contribute to OpenFHE is encouraged to ask us, e.g., using contact@openfhe.org, to add their github account directly to GitHub - openfheorg/openfhe-development: This is the development repository for the OpenFHE library. The current stable version is 1.2.4 (released on March 21, 2025). The current development version is 1.3.0 (released on May 21, 2025).. I’ve added your github account to repo so you could create the PR. Please create a feature branch directly in openfhe-development and submit the PR against the dev branch. Thank you in advance for your contribution.