(c++, clang++, debian: wheezy)
I'm trying to build and link to a static library in Linux (which I have never programmed in before).
The problem I am having is that when I try to link to my library it tells me:
"../libsophia/build/libsophia.a: could not read symbols: Archive has no index; run ranlib to add one"
Then, when I try to run "nm libsophia.a" I get:
clang_compile = clang++ -std=c++0x -S all: $(clang_compile) sa_math.cpp -o build/sa_math.o $(clang_compile) sa_sophia.cpp -o build/sa_sophia.o $(clang_compile) sa_stringtools.cpp -o build/sa_stringtools.o $(clang_compile) sa_string.cpp -o build/sa_string.o $(clang_compile) sa_baseapplication.cpp -o build/sa_baseapplication.o $(clang_compile) sa_random.cpp -o build/sa_random.o ar rcs build/libsophia.a \ build/sa_math.o \ build/sa_sophia.o \ build/sa_stringtools.o \ build/sa_string.o \ build/sa_baseapplication.o \ build/sa_random.o
(My Test Application)
clang_compile = clang++ -std=c++0x -I ../libsophia/public/ -l:../libsophia/build/libsophia.a all: $(clang_compile) main.cpp -o build/main
I want to mention I know nothing about writing software in Linux, and any help would be much appreciated!
Thank you!

Find content
Not Telling