Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Example

This example corresponds to the SEC separation problem derived from the graph of Figure 6 in the paper.

Build the example

cd $BUILD
make install

You can build and run the example by:

gcc -o example example.c -lcpsrksec
./example

It is assumed that you have already configured, built and installed the library. Otherwise, follow the instructions in the project README.

If you have used a different prefix when configuring the project, do not forget to append the shared library path to the LD_LIBRARY_PATH environment variable.

gcc -o example example.c -I$PREFIX/include/ -L$PREFIX/lib/ -lcpsrksec
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PREFIX/lib/
./example

Remember to append the new LD_LIBRARY_PATH to your bashrc file.

Build with Libtool

If you want to make changes in the library code without installing the library system-wide every time you modify a file, use Libtool to compile the example.

libtool --mode=link gcc -o example  example.c -I../src ../build/src/libcpsrksec.la

Consider running the experiments, if you need a deeper testing.