has anyone ever tried to build a FME function with C++ and using MinGW (gcc 4.7.2) instead of VS as compiler?
This is how far i got with the included CenterOfMass sample:
- DevC++ builds the CenterOfMass_func.dll and can link it. I only had to add on additional header file (sdtlib.h) to make size_t available.
- FME recognizes the dll and loads it, i see the statement about the correct API version in the log
- i can do cout outputs i both the createFunction- and destroyFunction, so FME has loaded the module and does use both.
- it does not seem FME enters the execute function at all. I've put a cout in the first line but it does not get printed
- I've tried using the function with both FMEFunctionCaller and CenterOfMass transformer
I've not succeded to get GDB working correctly and placing break points in the code, so for now i'v just doing printing those debug statements.
Any C++ experts out here? And yeah, i know there is a free VS edition and most likely the sample will work out of the box with it, but this would be no fun at all !