Jump to content

.prop Generation not work.


photo

Recommended Posts

ComponentSystem::get()->initialize(); executed but .prop not generated. Only you know what magical 'if' disable .prop generating with nothing output in logs. In simple project .prop generated normally.

Link to comment

I found thing generating this error.

.cpp file with
REGISTER_COMPONENT(MyComp);

Not linked in exe because 0 direct usages of this translation unit. 

Link to comment
  • 2 weeks later...

No.

 

I have file with only 2 lines:
 

#include "..."
REGISTER_COMPONENT(MyComp);

Its included in .lib compile.

But in final exe its code not included. Because no direct usages of this Translation Unit.

If i add some func and not use its, then this TU will be NOT included in exe.

If i add some func and use its, then this TU will be included in exe and work normally.

 

.h isnt TU and not compiled by self.

.cpp Compiled and i see this file in .lib compilation.

 

Now i use direct register component call near subsystem init.

 

Edited by Nik.Sam
Link to comment
×
×
  • Create New...