Page 1 of 1

Weird warning compiling 1.0.01

Posted: Wed Mar 01, 2006 17:08
by MartinHowe
When compiling 1.0.01 with MSVC/NET/2003 and adding /GL to the command line (I already use the toolkit compiler) it provokes this:
warning LNK4218: non-native module found; restarting link with /LTCG
Apparently inserting /LTCG into the linker command line as well will fix it, but nobody on the web, not even MSDN, seems to want to tell me what a "non-native object" is.

Anyone?

Posted: Fri Mar 10, 2006 9:08
by MartinHowe
BUMP!

Please help? Pretty please? Surely there are enough Microsoft VC users here to answer this?

Posted: Fri Mar 10, 2006 10:44
by Graf Zahl
As I understand it you have to set both options to make whole program optimization work properly and this is just a reminder that you forgot it.

Posted: Fri Mar 10, 2006 23:32
by MartinHowe
Graf Zahl wrote:As I understand it you have to set both options to make whole program optimization work properly and this is just a reminder that you forgot it.
Sure, I read the MSDN article on this error; the compiler automatically sets the linker option and restarts the link, so it isn't serious.

What is serious is that the term "non-native" is not defined and I can't find anywhere on MSDN that does define it. In this context "non-native" presumably does not refer to .NET pcode - which is what it would normally mean - , so I have no idea what they mean.