GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Error while using C linker
Operating System - Tru64 Unix
1857665
Members
6575
Online
110380
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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-22-2004 03:00 AM
02-22-2004 03:00 AM
Error while using C linker
Hello All,
I have a shared library 'A' written in C. This library has dependency on another shared library 'B' written in C++ and exposes some APIs which 'A' library uses. Now the problem is that if I use the C++ linker, thinks work fine. But if I use C linker, then I get the following error,
ld: Unsatisfied symbol "main" in file
1 errors.
I am using HP-11.00 RISC with aCC 3.37 compiler and OSF 5.1 CPQ 6.5 compiler. Is there any linker flag that I should use? Any workaround? My requirement is basically to use the C linker and not C++.
I don't have main implemented in both the libraries.
Any help is appreciated. Thanks in advance.
Sujata.
I have a shared library 'A' written in C. This library has dependency on another shared library 'B' written in C++ and exposes some APIs which 'A' library uses. Now the problem is that if I use the C++ linker, thinks work fine. But if I use C linker, then I get the following error,
ld: Unsatisfied symbol "main" in file
1 errors.
I am using HP-11.00 RISC with aCC 3.37 compiler and OSF 5.1 CPQ 6.5 compiler. Is there any linker flag that I should use? Any workaround? My requirement is basically to use the C linker and not C++.
I don't have main implemented in both the libraries.
Any help is appreciated. Thanks in advance.
Sujata.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:41 PM
03-09-2004 01:41 PM
Re: Error while using C linker
Hi,
from the error it seems to miss the option when try to create other
Shared. To create a shared library from one or more object files use the -b option at link time.
For examples:
aCC -b -o MyShared.sl Func1.o Func2.o
In every case, the C++ compiler must know that f(int,char,float) is to be called by a C compiler using the extern C construct.
Best Regards,
Cristiano
from the error it seems to miss the option when try to create other
Shared. To create a shared library from one or more object files use the -b option at link time.
For examples:
aCC -b -o MyShared.sl Func1.o Func2.o
In every case, the C++ compiler must know that f(int,char,float) is to be called by a C compiler using the extern C construct.
Best Regards,
Cristiano
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 2026 Hewlett Packard Enterprise Development LP