VecMat


Bohnsopp
11-23-2006, 10:35 AM
I found at Numerical Recipes your VecMath packages and I tried to use it. But I had some problems, so I tried to get a new version. I found in the google index a version 1.43, but your page is not alive. Is the VecMath Project death?

Has anyone the VecMath from the NR Site running?
I cannot compile a simple programm when the VecMath is included:

#include <iostream>
#include "vm/vec_mat.h"


int main(void){

std::cout << "a";
return 0;

}

Makefile:

CC = g++
CFLAGS = -Wall -g -I ./vm
DEPENDFILE = .depend
SOURCES = sin.cc
SRC = $(SOURCES)
EXECUTABLES = sin
#OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
OBJECTS=$(SOURCES:.cpp=.o)


all: dep $(EXECUTABLES)

info:
@echo ' '
@echo ' ----------------------------------------------------------------- '
@echo ' M A K E F I L E '
@echo ' '
@echo ' Sascha Berkenkamp '
@echo ' Universitiy of Applied Sciences, Bremen '
@echo ' Dublin Institute of Technologie '
@echo ' '
@echo ' ----------------------------------------------------------------- '
@echo ' Makefile fuer die Uebungen zur Programmiermethodik. '
@echo ' '
@echo ' '
@echo ' Dieses Makefile laesst sich folgendermassen verwenden: '
@echo ' '
@echo ' make dep - calculate dependencies '
@echo ' make all - compile project '
@echo ' make clean - clean compiled files '
@echo ' make dosclean - dto., but for DOS / Windows '
@echo ' '
@echo ' ----------------------------------------------------------------- '
@echo ' '


$(EXECUTABLES): $(OBJECTS)
$(CC) $(LDFLAGS) -o $(EXECUTABLES) $(OBJECTS) -lm


dep: $(SRC)
$(CC) $(CFLAGS) -MM $(SRC) > $(DEPENDFILE)

%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@


clean:
rm -f *.o $(EXECUTABLES) .depend

dosclean:
-@del $(EXECUTABLES).exe
-@del *.o
-@del .depend



# do not remove

-include $(DEPENDFILE)

Kevin Dolan
03-09-2007, 06:26 AM
Sorry for not replying sooner. The Vecmat software is still available. The old site hosting it is gone. You can now find it here.
http://kdolan1973.mine.nu/vecmat/software.htm

Very soon I will be releasing a new update to the software which adds some new functionality, and which works with VC++.NET 2005.

Kevin