Boost logo

Boost :

Subject: [boost] Serialization Link Error
From: Venkata (Ravi) Adusumilli (venkata.adusumilli_at_[hidden])
Date: 2009-01-16 01:07:11

BOOST: 1.37
Linux version 2.6.9-efsm (root_at_vizzini) (gcc version 3.4.6 20060404 (Red Hat
3.4.6-3)) #3 SMP Mon Dec 4 13:14:15 CST 2006

I recieve the following link error:
*undefined reference to `void
unsigned int)'*

while compiling the following class:

#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/shared_ptr.hpp>

class CommandRequest
    CommandRequest(int requestID, int commandType);
    int requestID() const;
    int commandType() const;

    int requestIDM;
    int commandTypeM;
    friend class boost::serialization::access;
    template<class A>
    void serialize(A& archive, const unsigned int);


    : requestIDM(0),

CommandRequest::CommandRequest(int requestID, int commandType)
    : requestIDM(requestID),


int CommandRequest::requestID() const
    return requestIDM;

int CommandRequest::commandType() const
    return commandTypeM;

template<class A>
void CommandRequest::serialize(A & archive, const unsigned int /* version
    archive & requestIDM;
    archive & commandTypeM;
template void
archive, const unsigned int version);
template void
archive, const unsigned int version);

Please let me know if you can help me out.

Thank You,
Venkata (Ravi) Adusumilli
"A happy New Year!
Grant that I May bring no tear to any eye
When this New Year in time shall end
Let it be said I've played the friend,
Have lived and loved and labored here,
And made of it a happy year."
~ Edgar Guest

Boost list run by bdawes at, gregod at, cpdaniel at, john at