jpbida/RSIM — Issue #1: Compile Error
Author: jpbida
Created: 2011-11-14 17:21:08+00:00
State: open

Under Mac OSX 10.7.2 and with the boost library installed with MacPorts:

Content of my file rsim/src/makefile:
-------------------------------------

CC=g++
CPPFLAGS= -O3 -ffast-math -I /opt/local/include/boost

.PHONY: all
all : $(patsubst %.cpp,%.o,$(wildcard *.cpp))
%.o : %.cpp
$(CC) $(CPPFLAGS) -c $<

Content of my file rsim/apps/makefile:
-------------------------------------

OBJECTS := $(wildcard ../src/*.o)
CC=g++
CPPFLAGS= -O3 -ffast-math -I /opt/local/include/boost -I ../src

.PHONY: all
all : $(patsubst %.cpp,%,$(wildcard *.cpp))
% : %.cpp $(OBJECTS)
$(CC) $(CPPFLAGS) -o ../bin/$(patsubst %.cpp,%,$@) $@.cpp $(OBJECTS)

When I type:

cd RSIM/src
make all

I get the following errors:

g++ -O3 -ffast-math -I /opt/local/include/boost -c ConfigFile.cpp
g++ -O3 -ffast-math -I /opt/local/include/boost -c algos.cpp
algos.cpp:3:34: error: boost/lexical_cast.hpp: No such file or directory
algos.cpp: In function ‘std::string povCamera(double, double, double, double, double, double)’:
algos.cpp:17: error: ‘boost’ has not been declared
algos.cpp:17: error: expected primary-expression before ‘>’ token
algos.cpp:19: error: ‘boost’ has not been declared
algos.cpp:19: error: expected primary-expression before ‘>’ token
algos.cpp:21: error: ‘boost’ has not been declared
algos.cpp:21: error: expected primary-expression before ‘>’ token
algos.cpp:23: error: ‘boost’ has not been declared
algos.cpp:23: error: expected primary-expression before ‘>’ token
algos.cpp:25: error: ‘boost’ has not been declared
algos.cpp:25: error: expected primary-expression before ‘>’ token
algos.cpp:27: error: ‘boost’ has not been declared
algos.cpp:27: error: expected primary-expression before ‘>’ token
algos.cpp:30: error: ‘boost’ has not been declared
algos.cpp:30: error: expected primary-expression before ‘>’ token
algos.cpp:32: error: ‘boost’ has not been declared
algos.cpp:32: error: expected primary-expression before ‘>’ token
algos.cpp:34: error: ‘boost’ has not been declared
algos.cpp:34: error: expected primary-expression before ‘>’ token
algos.cpp: In function ‘std::string povTriangle(std::vector >, std::string)’:
algos.cpp:42: error: ‘boost’ has not been declared
algos.cpp:42: error: expected primary-expression before ‘>’ token
algos.cpp:43: error: ‘boost’ has not been declared
algos.cpp:43: error: expected primary-expression before ‘>’ token
algos.cpp:44: error: ‘boost’ has not been declared
algos.cpp:44: error: expected primary-expression before ‘>’ token
algos.cpp:45: error: ‘boost’ has not been declared
algos.cpp:45: error: expected primary-expression before ‘>’ token
algos.cpp:46: error: ‘boost’ has not been declared
algos.cpp:46: error: expected primary-expression before ‘>’ token
algos.cpp:47: error: ‘boost’ has not been declared
algos.cpp:47: error: expected primary-expression before ‘>’ token
algos.cpp:48: error: ‘boost’ has not been declared
algos.cpp:48: error: expected primary-expression before ‘>’ token
algos.cpp:49: error: ‘boost’ has not been declared
algos.cpp:49: error: expected primary-expression before ‘>’ token
algos.cpp:50: error: ‘boost’ has not been declared
algos.cpp:50: error: expected primary-expression before ‘>’ token
algos.cpp: In function ‘std::string povSphere(std::vector >, double, std::string)’:
algos.cpp:417: error: ‘boost’ has not been declared
algos.cpp:417: error: expected primary-expression before ‘>’ token
algos.cpp:418: error: ‘boost’ has not been declared
algos.cpp:418: error: expected primary-expression before ‘>’ token
algos.cpp:419: error: ‘boost’ has not been declared
algos.cpp:419: error: expected primary-expression before ‘>’ token
algos.cpp:420: error: ‘boost’ has not been declared
algos.cpp:420: error: expected primary-expression before ‘>’ token
algos.cpp: In function ‘std::string povCylinder(std::vector >, double, std::string)’:
algos.cpp:430: error: ‘boost’ has not been declared
algos.cpp:430: error: expected primary-expression before ‘>’ token
algos.cpp:431: error: ‘boost’ has not been declared
algos.cpp:431: error: expected primary-expression before ‘>’ token
algos.cpp:432: error: ‘boost’ has not been declared
algos.cpp:432: error: expected primary-expression before ‘>’ token
algos.cpp:433: error: ‘boost’ has not been declared
algos.cpp:433: error: expected primary-expression before ‘>’ token
algos.cpp:434: error: ‘boost’ has not been declared
algos.cpp:434: error: expected primary-expression before ‘>’ token
algos.cpp:435: error: ‘boost’ has not been declared
algos.cpp:435: error: expected primary-expression before ‘>’ token
algos.cpp:436: error: ‘boost’ has not been declared
algos.cpp:436: error: expected primary-expression before ‘>’ token
make: *** [algos.o] Error 1