blob: c4e4771f50062efe69626287e35849b347d2bf17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Simple Library Example
- Author: jak1
## Build
- `make shared` (required for all targets, also mentioned when you just do `make`) (shared object)
- `make client` builds the client_example (elf)
- `make server` builds the server_example (elf)
- `sudo make install` installs the library to /usr/local/*
- `make clean` cleans up all objects and binaries
- `sudo make cleanall` cleans up objects, binaries and delets it from your /usr/local/*
## Test it
the client needs a running server, so start with it first.\
- `./server_example`
then execute the client
- `./client_example`
## Troubleshooting
in case you get an error like: `error while loading shared libraries: libsom_net.so: cannot open shared object file: No such file or directory`\
there are 2 options:
- updated your ldconfig
or
- start the binarys like this:
- ```LD_LIBRARY_PATH=`pwd` ./server_example```
- ```LD_LIBRARY_PATH=`pwd` ./client_example```
## Copyright CC BY-SA 4.0
so feel free to edit publish or make money with it, as long as u keep my name in it :)\
you could even print it on toilet paper if you dislike it that hard...
|