From 62400bf2b5b559873726740e8aec536a796da942 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 6 Sep 2024 16:26:10 +0200 Subject: [PATCH] fix: c++ include paths The C include path has to be the latest! This is because the cstdlib header uses #include_next , and since the include of C headers comes first, stdlib.h is not found! --- ruther/packages/embedded.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ruther/packages/embedded.scm b/ruther/packages/embedded.scm index 9831413658cfe9744c1765e76415699cda31c4a2..c1bbcd0e11120b2abc5aa4c45e5170a1fe66e360 100644 --- a/ruther/packages/embedded.scm +++ b/ruther/packages/embedded.scm @@ -90,9 +90,12 @@ (files '("arm-none-eabi/include"))) (search-path-specification (variable "CROSS_CPLUS_INCLUDE_PATH") - (files '("arm-none-eabi/include" - "arm-none-eabi/include/c++" - "arm-none-eabi/include/c++/arm-none-eabi"))) + (files '("arm-none-eabi/include/c++" + "arm-none-eabi/include/c++/arm-none-eabi" + ; C has to be last since c++ headers use + ; #include_next inside of + ; Heh! :) + "arm-none-eabi/include"))) (search-path-specification (variable "CROSS_LIBRARY_PATH") (files '("arm-none-eabi/lib")))))))))