HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Linker error with aCC created shared library and g...
Operating System - HP-UX
1828793
Members
2834
Online
109985
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 05:39 PM
02-20-2002 05:39 PM
Hi all:
I have a shared library compiled with HP-UX 10.20 "aCC complier" that I am trying to link with the shared library generated by the "g++ complier"
I am getting the linker error as follows:
ld: Unsatisfied shared library symbols:
main (code)
ld: Unsatisfied symbols:
__nw__FUi (code)
parseRequest__6MyExampleFPCc (code)
I hope that there must be at least one way to link the shared library generated by aCC and the shared library generated by g++
The command i used to create the shared library by g++ is as follows:
g++ -fpic -shared -c MyExample.cpp
The command i used to create the shared library by aCC is as follows:
/opt/aCC/bin/aCC +z +u4 -c ACCExample.cpp
The command i used to link is as follows:
ld +n +vshlibunsats -o libServer.sl ACCExample.o MyExample.o /usr/lib/dld.sl /usr/ccs/lib/crt0.o -L/lib/pa1.1 -L/usr/lib/pa1.1 -L/usr/local/lib/gcc-lib/hppa1.1
-hp-hpux10.20/3.0.2 -L/usr/ccs/bin -L/usr/ccs/lib -L/opt/langtools/lib -L/usr/local/lib -lstdc++ -lm -lgcc -lc
Has anybody seen this problem or have an idea how to fix it?
Waiting for the help...Please do help
Thanks a lot.
I have a shared library compiled with HP-UX 10.20 "aCC complier" that I am trying to link with the shared library generated by the "g++ complier"
I am getting the linker error as follows:
ld: Unsatisfied shared library symbols:
main (code)
ld: Unsatisfied symbols:
__nw__FUi (code)
parseRequest__6MyExampleFPCc (code)
I hope that there must be at least one way to link the shared library generated by aCC and the shared library generated by g++
The command i used to create the shared library by g++ is as follows:
g++ -fpic -shared -c MyExample.cpp
The command i used to create the shared library by aCC is as follows:
/opt/aCC/bin/aCC +z +u4 -c ACCExample.cpp
The command i used to link is as follows:
ld +n +vshlibunsats -o libServer.sl ACCExample.o MyExample.o /usr/lib/dld.sl /usr/ccs/lib/crt0.o -L/lib/pa1.1 -L/usr/lib/pa1.1 -L/usr/local/lib/gcc-lib/hppa1.1
-hp-hpux10.20/3.0.2 -L/usr/ccs/bin -L/usr/ccs/lib -L/opt/langtools/lib -L/usr/local/lib -lstdc++ -lm -lgcc -lc
Has anybody seen this problem or have an idea how to fix it?
Waiting for the help...Please do help
Thanks a lot.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2002 03:53 AM
02-21-2002 03:53 AM
Solution
Sorry, its not possible. aCC and g++ both have different name mangling algorithms (which is the process of turning a Class::function(arg) name into a symbol name in the object code). One will not recognise a symbol name generated by the other and you will get unsatisfied symbols as you have seen.
If all your code is true C++ then your only choice is to stick to the one compiler.
If any of the code is straight C compiled as C++ then you may be able to work around it by using extern "C" directives. See http://docs.hp.com/hpux/onlinedocs/dev/aCC/a_03_30/otherlangs.htm#OtherLanguages for more info on this.
Regards,
Steve
If all your code is true C++ then your only choice is to stick to the one compiler.
If any of the code is straight C compiled as C++ then you may be able to work around it by using extern "C" directives. See http://docs.hp.com/hpux/onlinedocs/dev/aCC/a_03_30/otherlangs.htm#OtherLanguages for more info on this.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 08:02 AM
03-15-2002 08:02 AM
Re: Linker error with aCC created shared library and g++ created shared library
Hi Steve:
Thanks a lot for your reply...I had done that coding in C++ instead of java.
Your answer helped me to put a full stop in putting my efforts in that direction.
Sri
Thanks a lot for your reply...I had done that coding in C++ instead of java.
Your answer helped me to put a full stop in putting my efforts in that direction.
Sri
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP