Boost logo

Boost :

Subject: Re: [boost] [castor] Interest in Logic Paradigm for C++ ?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-05-19 20:11:17


On 05/19/10 18:39, Larry Evans wrote:
[snip]
>> However, apparently several more files need to be compiled and linked
> because I'm getting the following with that attached Makefile:
>
> make -Wtest_castor.cpp
> /home/evansl/download/gcc/4.5-20100408/install/bin/g++ -c
> -I/home/evansl/prog_dev/castor/castor_1.1_pre_beta/test/..
> -DCASTOR_DISABLE_AND_OPTIMIZATION test_castor.cpp
> /home/evansl/download/gcc/4.5-20100408/install/bin/g++ test_castor.o -o
> test_castor.x
> test_castor.o: In function `runtests()':
> test_castor.cpp:(.text+0x6557): undefined reference to `test_lref()'
> test_castor.cpp:(.text+0x6561): undefined reference to `test_begin_end()'
[snip]
The brute force method (compile all test_*.cpp files) in attached
gnu Makefile succeeds with output:

g++ test_castor.o test_collection.o test_core.o test_eq.o
test_higher_order.o test_ile.o test_io.o test_predicate.o test_tlr.o
test_utils.o -o test_castor.x
./test_castor.x
Relation myFastAndTestRel copy constructed too many times

Failed: 1
Passed: 108
Total: 109
Time taken 20000

  Testing Complete!

MAIN=test_castor
test_castor.deps.cpp=$(wildcard test_*.cpp)
test_castor.deps.fn=$(basename $(test_castor.deps.cpp))
OBJECTS=$(addsuffix .o,$($(MAIN).deps.fn))
COMPILER=g++
COMPILE.opts=-DCASTOR_DISABLE_AND_OPTIMIZATION
INCS:= -I$(PWD)/..

:PHONY. show_mac run clean

run: $(MAIN).x
        ./$(MAIN).x

$(MAIN).x : $(OBJECTS)
        $(COMPILER) $(OBJECTS) -o $@

%.o : %.cpp
        $(COMPILER) -c $(INCS) $(COMPILE.opts) $*.cpp

show_mac:
        @echo $(COMPILE.opts)

clean:
        rm $(OBJECTS)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk