For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

OCCT linking error

W D's picture
Forums: 

Whenever I link my code with opencascade 7.3.0 or 7.4.0 even when I don't use the library in my code I get more than 95 memory leaks and a segment fault on valgrind. I would like to know how this can be solved if its not a bug. Please see the image attached below.

Kirill Gavrilov's picture

How do you plan using libTKDraw (from callstack on your screenshots) in your application? To embed Tcl console into application user interface?

W D's picture

Yeah, you have a point there. I had planned to use it in a similar way but due to some design challenges I abandoned the path and forgot to change my make file like this one below :

find_package(Threads REQUIRED)
find_package(OpenCASCADE REQUIRED)

...
target_include_directories(hello PUBLIC ${Boost_INCLUDE_DIRS} ${OpenCASCADE_INCLUDE_DIR})
target_link_libraries(hello ${Boost_LIBRARIES} Threads::Threads ${OpenCASCADE_LIBRARIES})

Now I have reduced the libraries to those that my application requires but I have a "still reachable"  report stating that 16 bytes are in us at exit. Some say its benign but In case this can still be solved I will send the image .

set (OCCT_LIBS TKSTEP;TKIGES;TKXSBase;TKBRep;TKG3d;TKTopAlgo;TKMath;TKernel)
...
target_link_libraries(hello ${Boost_LIBRARIES} Threads::Threads ${OCCT_LIBS})

Hope it will help others :)

NB : I am not a make file guru!

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.