Weird warning compiling 1.0.01

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
MartinHowe
Posts: 154
Joined: Tue Aug 30, 2005 22:07
Location: East Suffolk (UK)

Weird warning compiling 1.0.01

Post 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?
User avatar
MartinHowe
Posts: 154
Joined: Tue Aug 30, 2005 22:07
Location: East Suffolk (UK)

Post by MartinHowe »

BUMP!

Please help? Pretty please? Surely there are enough Microsoft VC users here to answer this?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
User avatar
MartinHowe
Posts: 154
Joined: Tue Aug 30, 2005 22:07
Location: East Suffolk (UK)

Post 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.
Locked

Return to “GZDoom”