problem with load an iges file

I work with linux and for my first program i take an example in iges user's guide, 2.9 sample processor sequence page 27 :

#include #include #include

int main () {

IGESControlStd_Reader r;

r.ReadFile("myFichier.igs");

}

when i do gcc -DLIN -I/usr/local/CAS3.0/inc lecture_fichier_iges.cc i obtain : /tmp/ccoPEo99.o: In function `main': /tmp/ccoPEo99.o(.text+0xb): undefined reference to `IGESControlStd_Reader::IGESControlStd_Reader(void)' /tmp/ccoPEo99.o(.text+0x1c): undefined reference to `IGESControlStd_Reader::ReadFile(char *)'

Could you help me please?

Yan's picture

Add -L/usr/local/CAS3.0/Linux/lib to your command. this will tell the linker to find unresolved symbols in CasCade shareable libraries located in this directory. You have examples of compilation commands in the file : /usr/local/CAS3.0/adm/Linux/IGESControlStd.comp In this directory the files *.lnk are linking commands. Let 's look in one of them and arrange it for your own.

Yan's picture

My previous answer was incomplete add this to your compile command:

-L/usr/local/CAS3.0/Linux/lib -lTKShHealingStd -lTKXSBase -lTKIGESStd