Boost logo

Boost Users :

From: s1imshady86 (s1imshady86_at_[hidden])
Date: 2002-01-11 00:53:28


When my test program gets to the cout << a; line i get
a external error. As far as i can tell the library is setup right.
I had no problem using tuples in other programs but cant seem to
print them. The documentation doesn't list this feature as broken on
my compiler or any compiler for that matter. Im using MSVSC++ btw.

#include <iostream>
#include <boost/tuple/tuple_io.hpp>

using namespace std;
using namespace boost;

int main ()
{
        tuple<int,int> a (23,42);
        cout << a;
        return 0;
}

heres the error verbatim:

--------------------Configuration: Tuple - Win32 Debug----------------

----
Compiling...
Test.cpp
Linking...
Test.obj : error LNK2001: unresolved external symbol "private: static 
int const * const  boost::tuples::detail::format_info::stream_index" 
(?stream_index_at_format_info_at_detail@tuples_at_boost@@0QBHB)
Debug/Tuple.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating browse info file...
Tuple.exe - 2 error(s), 0 warning(s)

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net