my make file:
all: hPif clean
hPif : src/main.o src/fann_utils.o src/hashes.o src/Config.o
g++ src/Config.o src/main.o src/fann_utils.o src/hashes.o -lfann -L/usr/local/lib -o hPif
Config.o : src/Config.cpp src/Config.h
g++ -c src/Config.cpp
hashes.o : src/hashes.cpp src/hashes.h
g++ -c src/hashes.cpp
fann_utils.o: src/fann_utils.cpp fann_utils.h src/Config.h src/hashes.h
g++ -c src/fann_utils.cpp
main.o: src/main.cpp src/Config.h src/main.h src/hashes.h
g++ -c src/main.cpp
clean:
rm -rf src/*o
rm -rf *o
the error I get, upon make:
g++ src/Config.o src/main.o src/fann_utils.o src/hashes.o -lfann -L/usr/local/lib -o hPif
Undefined symbols:
"Config::NO_FILE_TRAIN", referenced from:
_main in main.o
_main in main.o
"Config::LEARNING_RATE", referenced from:
display_help() in main.o
train_network_no_file() in main.o
train_network() in main.o
_main in main.o
.
.
.
detail on code layout here: C++: I have this config class that I want to use between all my CPP files, how do I initialize it?
EDIT:
the code having issues here: http://pastebin.com/PDmHaDaC