There is nothing written to dmesg when the error occurs
apparmor is running by default but no effect if disabled
The file command output may contain a clue. The working version compiled from the command line is an "ELF 64-bit LSB shared object, not stripped". The CB compiled version that runs from the IDE but fails from the command line is an "ELF 64-bit LSB executable, stripped".
~/Source/Barcode$ file Barcode
Barcode: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=492d894beb613937df192d803629005eb8b17095, for GNU/Linux 3.2.0, not stripped
~/Source/Barcode/bin/Release$ file Barcode
Barcode: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=923304fc1cda1c3474db62bb3d70b5c230fed520, stripped