Boost logo

Boost :

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


On 04/29/10 02:12, Roshan Naik wrote:
[snip]
> ==================
> Links for Castor - v1.1 beta (ported to Gcc 4.4.1 and VC++ 2008) :
> ==================
>
> Library+docs: http://mpprogramming.com/downloads/prebeta-1.1.zip
>
[snip]

Hi Roshan.

I downloaded the .zip file and followed the instructions in the
README.txt which contained:

GCC (on Unix)
--------------------------------------
  To compile: g++ -I../ test_castor.cpp -o test_castor
  To Run : ./test_castor

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()'
test_castor.cpp:(.text+0x656b): undefined reference to `test_or_and()'
test_castor.cpp:(.text+0x665b): undefined reference to
`test_Prefix_UnaryOps_ILE()'
test_castor.cpp:(.text+0x6665): undefined reference to
`test_Postfix_UnaryOps_ILE()'
test_castor.cpp:(.text+0x666f): undefined reference to `test_eq()'
test_castor.cpp:(.text+0x6679): undefined reference to `test_eq_values()'

So, shouldn't the README.txt be corrected.

TIA.

-Larry

MAIN=test_castor
DOWNLOADGCC.dir=/home/evansl/download/gcc
VARISNAP.gcc4_5.dir=$(DOWNLOADGCC.dir)/4.5-20100408
COMPILER.gcc4_5=$(VARISNAP.gcc4_5.dir)/install/bin/g++
COMPILER=$(COMPILER.gcc4_5)
COMPILE.opts=-DCASTOR_DISABLE_AND_OPTIMIZATION
INCS:= -I$(PWD)/..

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

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

:PHONY. show_mac

show_mac:
        @echo $(COMPILE.opts)


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