cancel
Showing results for 
Search instead for 
Did you mean: 

ITK Programming: *.c and *.cpp extension

Phenom
Phenom

Hi all,

 

Could anyone please provide the correct settings with which CPP functionalities could be used in custom handlers ? Please find below the details of my problem. Thanks in advance!

 

Problem desc:

 

I am working on a custom subscription handler. I am building my custom library (DLL) in visual studio and then installing the custom handler using %TC_BIN%\install_handlers.exe.

 

Everything was working fine till I used the source code files with .c extension. Once I changed the extension to .cpp (to use CPP structures like std::map), Teamcenter (11.2.1) started giving error message:

 

NoId - 1146 - Could not load the Entry Point Function Ptr <libxplm_subscription_handler_register_callbacks> for the Custom Library <libxplm_subscription_handler>

 

It started working when I went back to *.c.

 

 

1 REPLY

Re: ITK Programming: *.c and *.cpp extension

Phenom
Phenom

Found it in TC Help. Used .CXX extension instead of .CPP and enclosed code in extern "C". Handler works with use of CPP classes now.