Archived
This forum has been archived. Please start a new discussion on GitHub.
Problems linking IceStorm in C++
Hello.
I am trying to work with IceStorm in C++ and I am getting the following error in linking time:
My code is very simple. I have just putted the header IceStorm.h:
I would be very thankful if anyone could help me,
Angela del Barrio
University of Cantabria
Proyecto Hesperia.
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.
0
Comments
-
You are not linking with the IceStorm library. Add -lIceStorm to your command line.0
-
Thanks a lot. It worked perfectly.
Angela del Barrio
University of Cantabria
Proyecto Hesperia0