Browse Source

Fixed g++ compilation command

pull/63/head
Kevin Bogusch 5 months ago
parent
commit
e360270530
  1. 4
      week4/day4.ipynb

4
week4/day4.ipynb

@ -513,10 +513,10 @@
" elif my_platform == \"Linux\":\n", " elif my_platform == \"Linux\":\n",
" if os.path.isfile(\"./simple\"):\n", " if os.path.isfile(\"./simple\"):\n",
" os.remove(\"./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(compile_cmd):\n",
" if run_cmd([\"./simple\"]) == \"Hello\":\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", " \n",
" if not my_compiler:\n", " if not my_compiler:\n",
" if os.path.isfile(\"./simple\"):\n", " if os.path.isfile(\"./simple\"):\n",

Loading…
Cancel
Save