Oct 29, 2013 at 9:00pm
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?
Oct 29, 2013 at 9:22pm
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?
Oct 29, 2013 at 9:47pm
> do i have to link to anything when i compile it?
No, by definition. ;)
Oct 29, 2013 at 10:16pm
Try changing the label to jade.
Oct 29, 2013 at 10:46pm
Did you already had a file named "jade" that was newer than the main.cpp, Lexer.cpp, and Debug.cpp?
Oct 29, 2013 at 10:48pm
No. I did already have jade, but it had been compiled from the command line using the same command
Oct 30, 2013 at 6:14am
ok thanks i will. does make support globbing?
edit: i did, but it still gives the same error
Last edited on Oct 30, 2013 at 6:15am
Oct 30, 2013 at 6:48am
makefile:10: *** missing separator. Stop.
Oct 30, 2013 at 7:11am
Did you copy-paste without replacing the indentation with tab chars?
Oct 30, 2013 at 7:19am
Wait is that the issue? It has to literally be \t? It cant be spaces like in python?
Oct 30, 2013 at 8:09am
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 Oct 30, 2013 at 8:38am
Oct 30, 2013 at 2:31pm
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