Dominique wrote:
Hi,
I wish to be able to define a package that just defines some types. This works OK, but the generated code for the package is a .h file and a .cpp file. The cpp file has no meaningful code, but gets compiled and linked.
This is causing problems when we link in compiled library files that also are based on this package (that just defines types). We get linker errors of multiply defined objects, because each library contains a compiled object code for this package.
The solution would appear to be to just generate a .h file. Can we do this?
Thanks
Not sure. But I have done this for functions so that it only generates the function in the .h and not the .cpp. To do this I override the CG->Generate feature to specification. You should check to see if there is something similar in the properties of the package or class.