Operating System - HP-UX
1753497 Members
4514 Online
108794 Solutions
New Discussion юеВ

Re: Unresolved symbols - libCsup

 
SOLVED
Go to solution
Simon Bradosh
New Member

Unresolved symbols - libCsup

Hi getting unresolved symbols at run-time for __libCsup_mutex_alloc and __libCsup_mutex_context.

My library uses libstd2 but not (directly) libCsup.

Compiler aCC A.03.33
Runtime uses A.03.73

nm libstd.2
3897 __libCsup_mutex_alloc| |undef |code |
3898 __libCsup_mutex_alloc| 227456|uext |stub |
3899 __libCsup_mutex_context| |undef |data |

nm libCsup_v2.sl:
1871 __libCsup_mutex_alloc| 91784|extern|entry |
1872 __libCsup_mutex_alloc| 91808|extern|code |$CODE$
1873 __libCsup_mutex_context|1073757696|extern|data |$BSS$

Any help appreciated.
2 REPLIES 2
Dennis Handly
Acclaimed Contributor
Solution

Re: Unresolved symbols - libCsup

>getting unresolved symbols at run-time for __libCsup_mutex_alloc and __libCsup_mutex_context.

This is impossible, your application is linked incorrectly. You are suppose to install the appropriate aC++ runtime patch which has both libstd and libCsup.

>My library uses libstd but not (directly) libCsup.

You can't do that. If you use libstd, you also need to use libCsup.
Here are the linking rules for aC++ plugins:
http://docs.hp.com/en/11920/HP%20aC++%20Online%20Programmer's%20Guide/distributing.htm#linking
Simon Bradosh
New Member

Re: Unresolved symbols - libCsup

As per above. Resolved. Thank you.