# Error launching c++ executable

**URL:** <https://community.unix.com/t/error-launching-c-executable/284156>\
**Category:** AIX\
**Created:** [March 9, 2011, 6:13am UTC](https://community.unix.com/t/error-launching-c-executable/284156 "2011-03-09T06:13:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JessicaAlfonsi](https://community.unix.com/letter_avatar/jessicaalfonsi/32/6_449c533f586939b6e5f246632a46421f.png) [@JessicaAlfonsi](https://community.unix.com/u/JessicaAlfonsi)\
**Post date:** [March 9, 2011, 6:13am UTC](https://community.unix.com/t/error-launching-c-executable/284156/1 "2011-03-09T06:13:43Z")

</div>

Hi everybody,  
I have compiled my code based on the ALPS libraries () and CMake build system with IBM compiler xlC 11.1 on AIX 6.1 at the latest patch level running on an IBM SP Power 6 machine for high-performance computing.  
When I run the executable I receive this error message:

```nohighlight
-bash-3.2$ ./hubbardfly 
exec(): 0509-036 Cannot load program hubbardfly because of the following errors:
rtld: 0712-001 Symbol decimal128ToNumber was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decContextDefault was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberCopy was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberFromString was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberToString was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberPower was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberDivide was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberMultiply was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberToIntegralValue was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberSubtract was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberCompare was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberZero was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberAdd was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decimal64ToNumber was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decimal32ToNumber was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decimal64FromNumber was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decimal128FromNumber was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decimal32FromNumber was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol decNumberQuantize was referenced
      from module /gpfs/scratch/userexternal/jalfonsi/alps-2.0.0-r5421-src-with-boost/installO2/lib/libalps.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-002 fatal error: exiting.

```

Can somebody help me ? I suspect something related to environment variables (setting the path for libalps.so does not work either) or maybe some compiler option to be passed.

Best regards,  
Jessica

---

<div class="post-metadata">

**Author:** ![zxmaus](https://community.unix.com/user_avatar/community.unix.com/zxmaus/32/927_2.png) [@zxmaus](https://community.unix.com/u/zxmaus)\
**Post date:** [March 12, 2011, 6:12am UTC](https://community.unix.com/t/error-launching-c-executable/284156/2 "2011-03-12T06:12:14Z")

</div>

Hi,

I am not a developer, just SA, but I asked around and this is what my developers are saying helped in the older versions - you may want to give it a try:

if "-G" and "-qtwolink" are failing, try "-brtl"

Regards  
zxmaus

---

<div class="post-metadata">

**Author:** ![JessicaAlfonsi](https://community.unix.com/letter_avatar/jessicaalfonsi/32/6_449c533f586939b6e5f246632a46421f.png) [@JessicaAlfonsi](https://community.unix.com/u/JessicaAlfonsi)\
**Post date:** [March 14, 2011, 5:15am UTC](https://community.unix.com/t/error-launching-c-executable/284156/3 "2011-03-14T05:15:48Z")

</div>

Thank you very much for your reply,  
unfortunately the -brtl option does not solve the problem, I'll try with the other two ones and I'll let you know.  
Best,  
Jessica
