Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: error while cout command compiling

Reply
Thread Tools

Re: error while cout command compiling

 
 
ehab
Guest
Posts: n/a
 
      07-07-2003
To whom adivces me to relace end1 by endl
I got the down error .


#include <iostream>
int main() {
std::cout << "hello world" <<std::endl;
}


# g++ stupid3.cpp
# ./a*
ld.so.1: ./a.out: fatal: libstdc++.so.5: open failed: No such file or directory
Killed
#
 
Reply With Quote
 
 
 
 
ehab
Guest
Posts: n/a
 
      07-08-2003
I could search the man page for variables but no one talked about ld
library that I should put it as a value .
Those are the man page env. variables : please specify valuse for each
one .

LANG
LC_CTYPE
LC_MESSAGE
LC_ALL
TMPDIR
GCC_EXEC_PREFIX
COMPILER_PATH
LIBRARY_PATH
CPATH
C_INCLUDE_PATH
CPLUS_INCLUDE_PATH
OBJC_INCLUDE_PATH
 
Reply With Quote
 
 
 
 
Dave Steffen
Guest
Posts: n/a
 
      07-09-2003
(ehab) writes:

> I could search the man page for variables but no one talked about ld
> library that I should put it as a value .
> Those are the man page env. variables : please specify valuse for each
> one .
>
> LANG
> LC_CTYPE
> LC_MESSAGE
> LC_ALL
> TMPDIR
> GCC_EXEC_PREFIX
> COMPILER_PATH
> LIBRARY_PATH
> CPATH
> C_INCLUDE_PATH
> CPLUS_INCLUDE_PATH
> OBJC_INCLUDE_PATH


Again: these are all environment variables, their proper value depends
on your environment. This is fundamentally an operating systems
question; you should ask your system administrator. We have no way of
knowing what these should be set to, because we don't know what your
environment is (or, in my case, what some of those variables do).

In principle, you should do your own investigating into what these
variables mean and what they should be set to. A more practical
solution is to ask your system administrator, or another user on the
system who is inclined to be helpful.

To answer your question: last time I looked, on Linux systems, the
variable you need to set is called LD_LIBRARY_PATH. What you need to
set it to is very system-dependent.

--------------------------------------------------------------------------
Dave Steffen, Ph.D. Wave after wave will flow with the tide
Dept. of Physics And bury the world as it does
Colorado State University Tide after tide will flow and recede
Leaving life to go on as it was...
- Peart / RUSH
"The reason that our people suffer in this way....
is that our ancestors failed to rule wisely". -General Choi, Hong Hi


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
std::cout vs cout Pmb C++ 2 06-02-2004 03:27 PM
Re: error while cout command compiling ehab C++ 3 07-07-2003 10:49 AM
Re: error while cout command compiling ehab C Programming 3 07-07-2003 10:49 AM
Re: error while cout command compiling ehab C Programming 1 07-07-2003 07:52 AM
man cout or info cout abi C++ 2 06-28-2003 06:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57