D
deerwish
Guest
We split our one big C++ source code into multiple files for e.g. file[0-7].
During linking all these objects combine to form a single lib. Now the definition of function foo() is in file0, while it is being called from all other files.
As foo() is unused in file 0, compiler seems to have removed it, so during link time all others complain.
Is there a switch in Visual Studio 2015 that can prevent the compiler to remove the unreferenced inline function, so that the way we generate our code can still work? In Linux there is no such issue and our code worked fine.
Thanks.
Continue reading...
During linking all these objects combine to form a single lib. Now the definition of function foo() is in file0, while it is being called from all other files.
As foo() is unused in file 0, compiler seems to have removed it, so during link time all others complain.
Is there a switch in Visual Studio 2015 that can prevent the compiler to remove the unreferenced inline function, so that the way we generate our code can still work? In Linux there is no such issue and our code worked fine.
Thanks.
Continue reading...