Sponsored Content
Top Forums UNIX for Advanced & Expert Users C++ Compiling error.. Symbol Reference Post 302084001 by bjena on Tuesday 8th of August 2006 08:18:38 PM
Old 08-08-2006
C++ Compiling error.. Symbol Reference

Undefined first referenced
symbol in file
std::basic_string<char, std::char_traits<char>, std::allocator<char> >:Smilieperator[](unsigned int) const/var/tmp//cc9ACJBX.o
std::basic_istream<char, std::char_traits<char> >& std:Smilieperator>><char, std::char_traits<char> >(std::basic_istream<char, std::char_traits<char> >&, char&)/var/tmp//cc9ACJBX.o
std::basic_istream<char, std::char_traits<char> >:Smilieperator>>(int&)/var/tmp//cc9ACJBX.o
std::cout /var/tmp//cc9ACJBX.o
std::ios_base::Init::~Init() /var/tmp//cc9ACJBX.o
std::ios_base::Init::Init() /var/tmp//cc9ACJBX.o
__gxx_personality_v0 /var/tmp//cc9ACJBX.o
std::basic_ostream<char, std::char_traits<char> >& std:Smilieperator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)/var/tmp//cc9ACJBX.o
std::basic_istream<char, std::char_traits<char> >::get()/var/tmp//cc9ACJBX.o
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const/var/tmp//cc9ACJBX.o
std::cin /var/tmp//cc9ACJBX.o
ld: fatal: Symbol referencing errors. No output written to a.out


----------------------------------------------------------------
I am having the above errror while compiling a C++ program using "gcc tic.C" command. Please help.

Thanks in advance.
 

10 More Discussions You Might Find Interesting

1. Programming

Compiling Errors -- Symbol referencing

I'm trying to compile a FTP_API program. To do this you must use the libftp.so libary. But that libary has references which are not defined. Has anyone had this problems and how is it corrected?? The command line looks like this:-------------------------------------------- # cc ftpstock.c -lftp... (5 Replies)
Discussion started by: spotanddot
5 Replies

2. Programming

symbol referencing error

Undefined first referenced symbol in file std::basic_ostream<char, std::char_traits<char> >::operator<<(int)/var/tmp//ccTR std::cerr /var/tmp//ccTRcjui.o std::cout /var/tmp//ccTRcjui.o... (1 Reply)
Discussion started by: suhasini
1 Replies

3. Programming

Symbol referencing error

Hey everyone, I can't figure out this symbol referencing error after looking at it for the longest time, and I figured some fresh eyes might be able to point something out I am overlooking. Undefined first referenced symbol in... (1 Reply)
Discussion started by: fromatz
1 Replies

4. Solaris

Symbol reference error for same code & libraries but compiled in different environmen

Hi All, I am having a code written in C++.First I build this code on SUN 5.10.It was built successfully.Following is the log when build was successful. -L/apps/compilers/SUNWspro/lib -lm -lsunmath \ -o App ld: warning: symbol `clog' has differing types: (file... (0 Replies)
Discussion started by: milindb
0 Replies

5. Solaris

/usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found

deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies

6. Programming

gcc symbol reference error in Solaris

Hi there, Honestly i'm not much of a code guy but i found some short piece of code over the net which i need to compile in my Solaris machine (in order to change my hostid). As far as i read - i need to use the gcc to compile this short text file making it an executable file. My problem is... (0 Replies)
Discussion started by: avisht
0 Replies

7. Shell Programming and Scripting

Symbol reference

Hi, test -d .ssh || mkdir .ssh && chmod 700 .ssh The command has couple of symbols, could someone redirect me to the link, where i can understand their significance. Thanks, John (1 Reply)
Discussion started by: john_prince
1 Replies

8. Shell Programming and Scripting

symbol list reference

Can anyone direct me to a page that holds a list of perl's built in symbols? Example: $_ means blah $? means blah2 $! means blah3 (3 Replies)
Discussion started by: mrwatkin
3 Replies

9. Shell Programming and Scripting

Perl de-reference code reference variable

Guys, May i know how can we de reference the code reference variable.? my $a = sub{$a=shift;$b=shift;print "SUM:",($a+$b),"\n";}; print $a->(4,5); How can we print the whole function ? Please suggest me regarding this. Thanks for your time :) Cheers, Ranga :) (0 Replies)
Discussion started by: rangarasan
0 Replies

10. Programming

Compiling C++ code with NetCDF libraries: "undefined reference"

Hi! I am trying to compile a C++ code with cmake and gcc on Ubuntu. The code uses NetCDF4 libraries. I specify the path to these libraries as follows: -I/usr/local/include -L/usr/local/lib -lnetcdf -lnetcdf_c++4 "ccmake" and "cmake" work fine. After typing "make" I receive the error... (0 Replies)
Discussion started by: Alauda
0 Replies
std::tr2::bool_set(3cxx)												  std::tr2::bool_set(3cxx)

NAME
std::tr2::bool_set - SYNOPSIS
Public Member Functions bool_set () bool_set (bool __t) bool contains (bool_set __b) const bool equals (bool_set __b) const bool is_emptyset () const bool is_indeterminate () const bool is_singleton () const operator bool () const Static Public Member Functions static bool_set emptyset () static bool_set indeterminate () Friends bool_set operator! (bool_set __b) bool_set operator& (bool_set __s, bool_set __t) template<typename CharT , typename Traits > std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &__out, bool_set __b)" bool_set operator== (bool_set __s, bool_set __t) template<typename CharT , typename Traits > std::basic_istream< CharT, Traits > & operator>> (std::basic_istream< CharT, Traits > &__in, bool_set &__b)" bool_set operator^ (bool_set __s, bool_set __t) bool_set operator| (bool_set __s, bool_set __t) Detailed Description bool_set See N2136, Bool_set: multi-valued logic by Herve Bronnimann, Guillaume Melquiond, Sylvain Pion. The implicit conversion to bool is slippery! I may use the new explicit conversion. This has been specialized in the language so that in contexts requiring a bool the conversion happens implicitly. Thus most objections should be eliminated. Definition at line 54 of file bool_set. Constructor &; Destructor Documentation std::tr2::bool_set::bool_set () [inline] Default constructor. Definition at line 59 of file bool_set. std::tr2::bool_set::bool_set (bool__t) [inline] Constructor from bool. Definition at line 62 of file bool_set. Member Function Documentation bool std::tr2::bool_set::equals (bool_set__b) const [inline] Return true if states are equal. Definition at line 69 of file bool_set. bool std::tr2::bool_set::is_emptyset () const [inline] Return true if this is empty. Definition at line 73 of file bool_set. bool std::tr2::bool_set::is_indeterminate () const [inline] Return true if this is indeterminate. Definition at line 77 of file bool_set. bool std::tr2::bool_set::is_singleton () const [inline] Return true if this is false or true (normal boolean). Definition at line 81 of file bool_set. Referenced by operator bool(). std::tr2::bool_set::operator bool () const [inline] Conversion to bool. Definition at line 86 of file bool_set. References is_singleton(). Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Sun Jan 6 2013 std::tr2::bool_set(3cxx)
All times are GMT -4. The time now is 05:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy