Thread overview
warning LNK4255 - How to solve this warning
Oct 18, 2022
Hipreme
Oct 18, 2022
Ali Çehreli
Oct 18, 2022
Hipreme
October 18, 2022

I get the warning warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info when dealing a project with multiple static libraries.

Is there any way to know which files produced this error or at least the symbol names that are clashing? I'm totally helpless about this error.

October 18, 2022
On 10/18/22 12:26, Hipreme wrote:

> Is there any way to know which files produced this error or at least the
> symbol names that are clashing? I'm totally helpless about this error.

There is 'nm' on Posix systems that lists symbols in object files (including libraries and programs).

Ali

October 18, 2022
On Tuesday, 18 October 2022 at 19:38:39 UTC, Ali Çehreli wrote:
> On 10/18/22 12:26, Hipreme wrote:
>
> > Is there any way to know which files produced this error or
> at least the
> > symbol names that are clashing? I'm totally helpless about
> this error.
>
> There is 'nm' on Posix systems that lists symbols in object files (including libraries and programs).
>
> Ali

I have added under lflags :
"/VERBOSE" which activates the verbose mode and "/WX" which treats the warnings as errors (because there is just so many things on linking step)

I found some functions but nothing of them feels out of the ordinary.
Treating this module as sourceLibrary instead of staticLibrary doesn't cause this warning though