If i have a rather large library of files, and want to link them, do i create a bash script and then put that into a python script to get all the files i need for that terminal line i need to use to compile. I don't think im building it properly cause there is no ./test
#!/usr/bin/env python3
import os
import subprocess
file = open("react3dEngine.txt", "r")
fileList=file.readlines()
file.close()
p=subprocess.Popen(["/usr/bin/g++", "-Wall", str(fileList), "-lglut",
"-lGLU", "-lGL", "-stdio=c+11", "-o", "test", 'main.cpp'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p.communicate()
p=subprocess.Popen(["./test"], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
p.communicate()
-stdio=c+11didn't you mean-std=c++11? You should include any errors you get, also try cutting and pasting the command you build into the command line directly to see if that works.