Home Help Center

Problems linking IceStorm in C++

delbarrioadelbarrioa Member Angela del BarrioOrganization: University of CantabriaProject: Hesperia
Hello.

I am trying to work with IceStorm in C++ and I am getting the following error in linking time:

Building target: myProgram
Invoking: GCC C++ Linker
g++ -L/usr/lib -o"ice" ./myProgram.o ./mySlice.o -lIce -lIceUtil
./myProgram.o: In function `__tcf_3':
/usr/include/IceStorm/IceStorm.h:212: undefined reference to `IceStorm::LinkExists::~LinkExists()'
./myProgram.o: In function `LinkExists':
/usr/include/IceStorm/IceStorm.h:193: undefined reference to `vtable for IceStorm::LinkExists'

My code is very simple. I have just putted the header IceStorm.h:
#include <Ice/Ice.h>
#include <IceStorm/IceStorm.h>

#include "mySlice.h"

int main ()
{
	return 0;
}


I would be very thankful if anyone could help me,


Angela del Barrio
University of Cantabria
Proyecto Hesperia.

Comments

  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    You are not linking with the IceStorm library. Add -lIceStorm to your command line.
  • delbarrioadelbarrioa Member Angela del BarrioOrganization: University of CantabriaProject: Hesperia
    Thanks a lot. It worked perfectly.

    Angela del Barrio
    University of Cantabria
    Proyecto Hesperia
Sign In or Register to comment.