Closed Perodactyl closed 1 month ago
You are linking to all objects, which is not good as it also compiles the standalone Lua interpreter. The CLI tool.
Link everything except the lua.o
file, which appears to contain the CLI command.
The message multiple definition of 'main'
hints that you try to build one binary with multiple main
functions, which are the entry points for you executable. But you can't have one binary with multiple functions with the same signature (in this case the entry point main
.
Worked, thanks for the help.
I'm testing out Eris currently because I have a distant dream of making a mod which involves minecraft computers (hmm, wonder where that idea comes from...). Currently I'm having trouble compiling to a .so file, any help?
Changes to src/Makefile:
Went through this, seems helpful: https://stackoverflow.com/questions/655163/convert-a-static-library-to-a-shared-library
Current issue (trying to seperately combine the .o files to a .so file):
Any bit of help would be appreciated.