INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Solaris Linking Errors

Solaris Linking Errors

(OP)
Hi Everyone,
  I was trying to compile a C++ code on Solaris 5.8 using the gcc 2.95.3 compiler. I have a Make file and when I run make I am getting the following errors. I think they are Linking errors. I am pasting a part of the errors I am getting. Please advice me on the same.
Thanks in advance.
-VN

solaris1$ make
gcc -c -g Thread.cpp
gcc -c -g Message.cpp
In file included from Include/as/as_str.h:35,
                 from Include/Adapter.h:29,
/usr/include/widec.h:38: warning: `getwc' redefined
/usr/include/iso/wchar_iso.h:337: warning: this is the location of the previous definition
/usr/include/widec.h:39: warning: `putwc' redefined
/usr/include/iso/wchar_iso.h:340: warning: this is the location of the previous definition
/usr/include/widec.h:40: warning: `getwchar' redefined
/usr/include/iso/wchar_iso.h:338: warning: this is the location of the previous definition
/usr/include/widec.h:41: warning: `putwchar' redefined
/usr/include/iso/wchar_iso.h:341: warning: this is the location of the previous definition
ld: fatal: symbol `namespaces' is multiply-defined:
        (file SManager.o and file gManager.o);
ld: fatal: File processing errors. No output written to c.out
collect2: ld returned 1 exit status
make: *** [c.out] Error 1
solaris1$

RE: Solaris Linking Errors

Not very sure about this as I've only used getwchar on M$.  

Possibility 1: It looks like you are linking a wide-char/Unicode library with a non wide-char library.  Basically it is moaning that everyone should either use or not use unicode and it doesn't like the mix.

Possibility 2: Are getwchar and putwchar inline routines with the definitions in the header files?  If they are is it possible to make them non-inline?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close