C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 25th, 2012, 08:05 AM
Revathi R Revathi R is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 18 Revathi R User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m 57 sec
Reputation Power: 0
Linking Errors

Hello

Code:

/opt/SUNWspro/bin/CC -o msggen  msggen.o licensemessage.o ../../../../libs/lib/libgeneral.a
Undefined                       first referenced
 symbol                             in file
cerr                                ../../../../libs/lib/libgeneral.a(string.o)
unsafe_ostream::operator<<(long)              ../../../../libs/lib/libgeneral.a(string.o)
operator delete(void*)                            msggen.o
operator new(unsigned int)                            licensemessage.o
Iostream_init::Iostream_init(void)               msggen.o
Iostream_init::~Iostream_init(void)               msggen.o
istream::operator>>(char*)                    ../../../../libs/lib/libgeneral.a(string.o)
setw(int)                          ../../../../libs/lib/libgeneral.a(string.o)
unsafe_ostream::outstr(const char*, const char*)     ../../../../libs/lib/libgeneral.a(string.o)
_ex_rethrow_q                       msggen.o
ld: fatal: Symbol referencing errors. No output written to msggen






Code:

gmake CG="-fast -O3 -compat=4 -features=extensions -i" all)
gmake[3]: Entering directory `/home1/tnpm_testuser/export/src/wm/export/src/wm/wm_cpp_loader/libs/license/src/msggen'
/opt/SUNWspro/bin/CC -o msggen  msggen.o licensemessage.o ../../../../libs/lib/libgeneral.a
Undefined                       first referenced
 symbol                             in file
cerr                                ../../../../libs/lib/libgeneral.a(string.o)
unsafe_ostream::operator<<(long)              ../../../../libs/lib/libgeneral.a(string.o)
operator delete(void*)                            msggen.o
operator new(unsigned int)                            licensemessage.o
Iostream_init::Iostream_init(void)               msggen.o
Iostream_init::~Iostream_init(void)               msggen.o
istream::operator>>(char*)                    ../../../../libs/lib/libgeneral.a(string.o)
setw(int)                          ../../../../libs/lib/libgeneral.a(string.o)
unsafe_ostream::outstr(const char*, const char*)     ../../../../libs/lib/libgeneral.a(string.o)
_ex_rethrow_q                       msggen.o
ld: fatal: Symbol referencing errors. No output written to msggen





i know beacause of missing of some object file this issue came up

I would like to know which file missing

I vent understood the error clearly can any one enlight me on this


Regards
Revathi R

Reply With Quote
  #2  
Old December 25th, 2012, 02:41 PM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,345 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 6 h 47 m 59 sec
Reputation Power: 383
I'm not familiar with sun CC compiler, except that it might be gcc.
The line you posted looks wrong to me. Is it part of a longer command? (Ends in open right paren.)
Is CG a typographical error by which you intended CC ?

Did you name std::cerr ?

Can you build and run this program?
Code:
#include<iostream>
int main() {
  std::cerr<<"hi\n";
  return 0;
}

If I name this program C.C my compilation and execution command is
Code:
$ a=./C && make -k $a && $a
__________________
[code]Code tags[/code] are essential for python code!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Linking Errors

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap