Linking - 1.1 English

Soft-Decision FEC Integrated Block LogiCORE IP Product Guide (PG256)

Document ID
PG256
Release Date
2022-10-19
Version
1.1 English

To use the C model, the user executable must be linked against the correct libraries for the target platform.

Linux

The executable must be linked against the following shared object library:

libIp_sd_fec_v1_1_bitacc_cmodel.so

Using GCC, linking is typically achieved by adding the following command line options:

-L. -Wl,-rpath,. -lIp_sd_fec_v1_1_bitacc_cmodel

This assumes the shared object libraries are in the current directory. If this is not the case, the -L. option should be changed to specify the library search path to use.

Using GCC, the provided example program run_bitacc_cmodel.c can be compiled and linked using the following command:

gcc -x c++ -I. -L. -lIp_sd_fec_v1_1_bitacc_cmodel -Wl,-rpath,. -o run_bitacc_cmodel 
run_bitacc_cmodel.c

An example compilation script, make_run_bitacc_cmodel.csh, is included in the zip file.

Windows

The executable must be linked against the following dynamic link library:

libIp_sd_fec_v1_1_bitacc_cmodel.dll 

Depending on the compiler, the import libraries might also be required:

libIp_sd_fec_v1_1_bitacc_cmodel.lib 

Using Microsoft Visual Studio, linking is typically achieved by adding the import libraries to the Additional Dependencies entry under the Linker section of Project Properties.

An example compilation script, make_run_bitacc_cmodel.bat, is included in the zip file.