Undefined Reference to TNaming_Builder and TNaming_NamedShape Functions

I am trying to compile the following as a small example of using the TNaming library. However, although my code compiles, the linker bugs out complaining about a bunch of Undefined References. Could there be something wrong in how I compiled opencascade? Or could it be that the TNaming module was designed only to be used within occ's OCAF thing, and that's why it's bugging out? I've attached my full source code and the full output of make. I used cmake to generate my Makefile, so I've attached my CMakeLists.txt as well.



Wolfgang Sanyer's picture

Figured it out, I needed to add TKCAF library. I thought the TKLCAF was sufficient but it was not.