so im making a makefile generator for a project, and decided to use boost.filesystem. do i have to link to anything when i compile it?
Boost does describe which parts of it are header-only and which have libraries to link.
"makefile generator"? As in GNU automake, cmake, qmake, etc configuration?
> do i have to link to anything when i compile it?
No, by definition. ;)
Try changing the label to jade.
Did you already had a file named "jade" that was newer than the main.cpp, Lexer.cpp, and Debug.cpp?
No. I did already have jade, but it had been compiled from the command line using the same command
ok thanks i will. does make support globbing?
edit: i did, but it still gives the same error
Last edited on
makefile:10: *** missing separator. Stop.
Did you copy-paste without replacing the indentation with tab chars?
Wait is that the issue? It has to literally be \t? It cant be spaces like in python?
No, it has to be indented by tabs.
I'd like to tweak keskiverto's makefile, by adding the Boost Filesystem stuff.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
# Point to your Boost top level directory
BOOST_ROOT = ../boost_1_54_0
# Hardcode compiler
CXX := ../gcc-4.8.1/bin/g++
CXXFLAGS := -std=c++11 -I$(BOOST_ROOT)
LDFLAGS := -L$(BOOST_ROOT)/stage/lib -lboost_filesystem
SRCS = main.cpp Lexer.cpp Debug.cpp
all: jade
jade: $(SRCS:.cpp=.o)
clean:
jade: $(SRCS:.cpp=.o)
|
Last edited on
actually im not using boost anymore. i was using it to generate makefiles for this project, but then i found there are ones already made