Turns out I'm an idiot, and made a typo:
g++ -fPIC -c libectarica.cpp
g++ -O2 -g3-shared -lm -ldl -lectara -lSDL -lGL -lGLU -Wall -Wl,-soname,libectarica.so.0 -o libectarica.so.0.8 *.o
...
Type: Posts; User: Ectara
Turns out I'm an idiot, and made a typo:
g++ -fPIC -c libectarica.cpp
g++ -O2 -g3-shared -lm -ldl -lectara -lSDL -lGL -lGLU -Wall -Wl,-soname,libectarica.so.0 -o libectarica.so.0.8 *.o
...
I rewrote the library in C89, so no part of it is C++ anymore. There is a second library that I wrote that depends on this library, and it happens to be written in C++, but I'm pretty sure it doesn't...
Congrats on 3k posts, by the way.
I use no makefile to do this; rather, just source and compiler. The commands I do use are:
gcc -fPIC -c libectara.c
gcc -O3 -g3 -shared -lm -ldl -Wall -Wl,-soname,libectara.so.1 -o...
I have a library that I've been writing for the past couple years, and I finally decided to port it to C from C++. After doing all this and making sure the syntax was right in all the code, I now...