do not use the lib prefix for library names

BodgeMaster-unfinished
BodgeMaster 2022-06-24 16:50:41 +02:00
parent cee542f1f5
commit 0d10af1bd6
4 changed files with 5 additions and 6 deletions

View File

@ -27,8 +27,7 @@ wait
# How to build a tool: Tell the compiler where to find shared libraries and # How to build a tool: Tell the compiler where to find shared libraries and
# which libraries to use. # which libraries to use.
# Example: shared libraries are in bin/lib => -Lbin/lib # Example: shared libraries are in bin/lib => -Lbin/lib
# one of the libraries in that directory is libnbt.so # one of the libraries in that directory is nbt.so => use with -l:nbt.so
# => use with -lnbt (omit prefix lib and suffix .so)
# How to run a tool: specify the library path to use for the dynamic linker # How to run a tool: specify the library path to use for the dynamic linker
# when running a program # when running a program
# Example: LD_LIBRARY_PATH=bin/lib bin/tools/dumpnbt # Example: LD_LIBRARY_PATH=bin/lib bin/tools/dumpnbt
@ -37,6 +36,6 @@ mkdir -pv bin/tools
# add compile commands to this variable # add compile commands to this variable
COMPILE_COMMANDS=" COMPILE_COMMANDS="
set -v set -v
$CXX_WITH_FLAGS src/tools/dumpnbt.cpp -Lbin/lib -lnbt -o bin/tools/dumpnbt & $CXX_WITH_FLAGS src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt &
" "
sh <<< $COMPILE_COMMANDS sh <<< $COMPILE_COMMANDS

View File

@ -1,4 +1,4 @@
#include "../lib/libnbt.h++" #include "../lib/nbt.h++"
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
return 0; return 0;