script
I have about 30 .cpp and .h files which i moved to my linux box. I'm looking to write a script to compile and link these together into an executable possibly using loop..*.cpp *.h . (so I dont have to type all of them out). any ideas?
|
Note: the correct way to aproach this would be to write a Makefile and build the software with GNU make. However, here's a short script which accomplishes what you request, assuming that all of the cpp/h files are in the same directory:
Code:
#!/bin/bash |
I have attempted using "make" a few times now, with no success
|
Quote:
Code:
all: executable_name |
All times are GMT -5. The time now is 03:21 AM. |