Which library do I need to link with?

71 views
Skip to first unread message

Keith Sloan

unread,
Oct 22, 2016, 6:55:04 AM10/22/16
to oce-dev
I have code which uses the following 
  • TColgp_Array2OfPnt
  • TColStd_Array1OfReal
  • TColStd_Array1OfInteger
What library do I need to link with?
As currently when I run I get undefined symbol: _ZN3App8Document9addObjectEPKcS2_b

Keith Sloan

unread,
Oct 23, 2016, 10:34:05 AM10/23/16
to oce-dev
Okay I put together a bash script to find unresolved symbols

#!/bin/bash
sym=$1
for i in $( ls /usr/lib/i386-linux-gnu/libTK* ); do
nm -D $i | grep "T "$sym
if [ $? -eq 0 ]; then
echo $i
fi
done

Thomas Paviot

unread,
Oct 24, 2016, 5:21:28 AM10/24/16
to oce...@googlegroups.com
TColgp is part of TKMath
TColStd is part of TKernel


Regards,

Thomas


--
You received this message because you are subscribed to the Google Groups "oce-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oce-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages