Boost logo

Boost Users :

From: Zhoujie Mao (zhoujie_at_[hidden])
Date: 2004-09-20 22:33:51


Jeff,

Below is part of my make file
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = main.o $(RES)
LINKOBJ = main.o $(RES)
LIBS = -L"D:/Dev-Cpp499/lib" -L"D:/boost/lib"
-L"D:/boost/lib/libboost_date_time-gcc-1_31.a"
INCS = -I"D:/Dev-Cpp499/include"
CXXINCS = -I"D:/Dev-Cpp499/include/c++/3.3.1"
-I"D:/Dev-Cpp499/include/c++/3.3.1/mingw32"
-I"D:/Dev-Cpp499/include/c++/3.3.1/backward"
-I"D:/Dev-Cpp499/lib/gcc-lib/mingw32/3.3.1/include"
-I"D:/Dev-Cpp499/include"
-I"D:/boost/include/boost-1_31"
BIN = newtest.exe
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)

all: all-before newtest.exe all-after

clean: clean-custom
        rm -f $(OBJ) $(BIN)

$(BIN): $(OBJ)
        $(CPP) $(LINKOBJ) -o "newtest.exe" $(LIBS)

main.o: main.cpp
        $(CPP) -c main.cpp -o main.o $(CXXFLAGS)

I did include the libboost_date_time-gcc-1_31 but it
did not work.

Can you spot something I am not doing correctly?
Thanks for the help.

George
--- Jeff Garland <jeff_at_[hidden]>
wrote:

> On Mon, 20 Sep 2004 10:12:02 -0700 (PDT), Zhoujie
> Mao wrote
> > Hi Jeff,
> >
> > Thanks for the suggestion. I actually was trying
> to
> > use the static library. I put both the static and
> > dynamic library in a directory, and included the
> > directory in my make file.
>
> I'm not sure what this means, but it needs to be in
> the link parameters of the
> command -- see below.
>
> > But obviously, g++ can not
> > find it somehow, are you aware of anything else
> that
> > could be the problem? Thanks
>
> Ok, well if you are using gcc I assume you have
> something like
> libboost_date_time-gcc-d-1_31.a as the static lib.
> You should have a -L
> switch which points to the directory that file is in
> and a
> -lboost_date_time-gcc-d-1_31
>
> So you compile command should look something like:
>
> g++ -I${BOOST_ROOT} -L{BOOST_LIB_ROOT} -l
> boost_date_time-gcc-d-1_31
> YOURFILE.cpp -o whatever.exe
>
> Jeff
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
>
http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net