- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error : /usr/ccs/bin/ld: Unsatisfied symbols: main...
Operating System - HP-UX
1753677
Members
5583
Online
108799
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
Discussions
Discussions
Forums
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
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
тАО08-17-2010 02:20 AM
тАО08-17-2010 02:20 AM
Error : /usr/ccs/bin/ld: Unsatisfied symbols: main (Not referenced yet! Probably due to -u option)
Hello all,
I am trying to build a shared library.
/opt/softbench/bin/aCC -c -g -Ae -mt +DAportable -z -fast -DXERCES_NEW_IOSTREAMS -I/opt/java1.4/include -I/opt/java1.4/include/hp-ux TestService.c
/opt/softbench/bin/aCC -g -AA +p -mt +DAportable -z -fast -DXERCES_NEW_IOSTREAMS -I/opt/java1.4/include -I/opt/java1.4/include/hp-ux -o TestService.sl TestService.o
First command executed succesfully and getting the object file generated (TestService.o: PA-RISC1.1 relocatable object)
And, I get the following error after executing the second command:-
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
*** Error exit code 1
My Makefile containg the below parameters
------------------------------------------
CCOMP = /opt/softbench/bin/aCC
CCOMPFLAGS = -g -Ae -mt +DAportable -z -fast -DXERCES_NEW_IOSTREAMS
CXXCOMP = /opt/softbench/bin/aCC
CXXCOMPFLAGS = -g -AA +p -mt +DAportable -z -fast -DXERCES_NEW_IOSTREAMS
LDFLAGS = -b +DAportable -Z -z -O
LD = ld ${LDFLAGS}
Machine specifics:-
HP-UX hpsd0803 B.11.11 U 9000/800 (tl)
Kindly suggest.
Thanks,
Abu
I am trying to build a shared library.
/opt/softbench/bin/aCC -c -g -Ae -mt +DAportable -z -fast -DXERCES_NEW_IOSTREAMS -I/opt/java1.4/include -I/opt/java1.4/include/hp-ux TestService.c
/opt/softbench/bin/aCC -g -AA +p -mt +DAportable -z -fast -DXERCES_NEW_IOSTREAMS -I/opt/java1.4/include -I/opt/java1.4/include/hp-ux -o TestService.sl TestService.o
First command executed succesfully and getting the object file generated (TestService.o: PA-RISC1.1 relocatable object)
And, I get the following error after executing the second command:-
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)
*** Error exit code 1
My Makefile containg the below parameters
------------------------------------------
CCOMP = /opt/softbench/bin/aCC
CCOMPFLAGS = -g -Ae -mt +DAportable -z -fast -DXERCES_NEW_IOSTREAMS
CXXCOMP = /opt/softbench/bin/aCC
CXXCOMPFLAGS = -g -AA +p -mt +DAportable -z -fast -DXERCES_NEW_IOSTREAMS
LDFLAGS = -b +DAportable -Z -z -O
LD = ld ${LDFLAGS}
Machine specifics:-
HP-UX hpsd0803 B.11.11 U 9000/800 (tl)
Kindly suggest.
Thanks,
Abu
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2010 02:24 AM
тАО08-17-2010 02:24 AM
Re: Error : /usr/ccs/bin/ld: Unsatisfied symbols: main (Not referenced yet! Probably due to -u option)
Hi Again,
My program doesn't have any main as i am trying for the JNI programing.
Thanks,
Abu
My program doesn't have any main as i am trying for the JNI programing.
Thanks,
Abu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2010 01:37 PM
тАО08-17-2010 01:37 PM
Re: Error : /usr/ccs/bin/ld: Unsatisfied symbols: main (Not referenced yet! Probably due to -u option)
>/opt/softbench/bin/aCC
(Why are you using this instead of /opt/aCC?)
>I get the following error after executing the second command:
To create a shlib you need -b.
>LDFLAGS = -b +DAportable -Z -z -O
Why aren't you using this? (Also, you can remove both -Z and -z, they are ignored for shlibs.
(Why are you using this instead of /opt/aCC?)
>I get the following error after executing the second command:
To create a shlib you need -b.
>LDFLAGS = -b +DAportable -Z -z -O
Why aren't you using this? (Also, you can remove both -Z and -z, they are ignored for shlibs.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP