From e360270530d9c3dc1388d7e6aa902400d767c7a5 Mon Sep 17 00:00:00 2001 From: Kevin Bogusch Date: Tue, 24 Dec 2024 09:39:59 -0500 Subject: [PATCH] Fixed g++ compilation command --- week4/day4.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/week4/day4.ipynb b/week4/day4.ipynb index 26d16f9..552d0c4 100644 --- a/week4/day4.ipynb +++ b/week4/day4.ipynb @@ -513,10 +513,10 @@ " elif my_platform == \"Linux\":\n", " if os.path.isfile(\"./simple\"):\n", " os.remove(\"./simple\")\n", - " compile_cmd = [\"gcc\", \"simple.cpp\"]\n", + " compile_cmd = [\"g++\", f\"{filename_base}.cpp\", \"-o\", f\"{filename_base}\" ]\n", " if run_cmd(compile_cmd):\n", " if run_cmd([\"./simple\"]) == \"Hello\":\n", - " my_compiler = [\"Linux\", \"GCC\", [\"gcc\", f\"{filename_base}.cpp\", \"-o\", f\"{filename_base}\"]]\n", + " my_compiler = [\"Linux\", \"GCC\", [\"g++\", f\"{filename_base}.cpp\", \"-o\", f\"{filename_base}\" ]]\n", " \n", " if not my_compiler:\n", " if os.path.isfile(\"./simple\"):\n",