Passing variables to a Makefile on the command-line fails
Jul 14, 2010 at 8:24am UTC
Hi folks
I'm getting a strange error when attempting to pass variables to g++ on the command-line. I'm sure I'm just doing something stupid, but am uncertain as to how to fix it.
slorimer@slorimer:~/projects/job> g++ -f Makefile LIBRARY=job install
g++: LIBRARY=job: No such file or directory
g++: install: No such file or directory
I'm using g++ version 4.4.1
Any help would be greatly appreciated!
TIA
Steve
Jul 14, 2010 at 9:09am UTC
You probably mean make
rather than g++
.
Jul 14, 2010 at 9:10am UTC
Yeah you're right, what a dumbass I am!
Last edited on Jul 14, 2010 at 9:11am UTC
Topic archived. No new replies allowed.