Unix Technical Forum

unresolved symbols issue

This is a discussion on unresolved symbols issue within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hi We have a project with c++ and c source files. here is what we are doing. using gcc/g++ ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 11:35 AM
Panduranga Chary
 
Posts: n/a
Default unresolved symbols issue

Hi

We have a project with c++ and c source files. here is what we are
doing.
using gcc/g++ 2.95 it goes well
1. generating .o files of cpp using g++
ex. g++ -c a1.cpp -o a1.o
2. creating an archive libtest.a from all cpp object
files
3. link the above archive to a target generated from
c file
ex. gcc -o agent.c libtest.a


when i changed the compiler gcc/g++ to 3.3.2 we are facing unresolved
symbols while linking archive file. the following symbols are not
resolved.

Undefined first referenced
symbol
in file
operator new(unsigned) x.o (x.cpp)
__gxx_personality_v0 x.o
operator delete(void*) x.o


is it that in the gcc version 2.95 c++ features included? why was it
throwing these errors in gcc 3.3.2 or later. these problems will go
if i link libstdc++, but our customers do not want this.

could some one help on this


Thanks in advance
Panduranga Chary

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com