Computing.Net > Forums > Solaris > Problem whit GCC in Solaris9

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Problem whit GCC in Solaris9

Reply to Message Icon

Name: luis
Date: October 10, 2003 at 11:21:45 Pacific
OS: SunOS 5.9 Generic_112233-
CPU/Ram: 500/512
Comment:

Hi, im wrote from Venezuela, sorry for the English.

I have installed GNU GCC 3.3 package from SunFreeWare.com, im tried to compile and execute some code, but i have this problem.

I compile without no problem, but when im try to execute the next message was throw for terminal

>> g++ -o Hello Hello.cpp
In file included from /usr/local/include/c++/3.3/backward/iostream.h:31,
from Hello.cpp:1:
/usr/local/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
>> Hello
ld.so.1: Hello: fatal: libstdc++.so.5: open failed: No such file or directory
Killed

Where is the problem?????
Thanks ;)



Sponsored Link
Ads by Google

Response Number 1
Name: cha-to
Date: October 10, 2003 at 21:06:39 Pacific
Reply:

Sounds like you have a programming problem as opposed to a Solaris problem. I don't know what your code looks like so I'll be guessing, and hopefully this will help you out.

Your compiler error says your header declarations are wrong (they're the old way). You problably have something like

#include <iostream.h>

at the beginning of your code.

If you notice your error message, it looks like the ".h" is the problem. I've read that one of the solutions is to drop the ".h" in the header and use namespace at the beginning of your file:

#include <iostream>
using namespace std;

If that doesn't work, then I suggest you put a post up in the programming section of this web site, and include your code. They should be able to help you out.

D.O


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Problem whit GCC in Solaris9

Installing ADSL problem for solaris www.computing.net/answers/solaris/installing-adsl-problem-for-solaris/1854.html

Problem with gcc -pg www.computing.net/answers/solaris/problem-with-gcc-pg/3098.html

GCC error in solaris9 www.computing.net/answers/solaris/gcc-error-in-solaris9/4306.html