Skip to content

[BUG] Linker Failure: Multiple Definition of 'log' Symbol #3

@KyxCy98

Description

@KyxCy98

The build process fails during the linking stage due to a symbol collision. The global variable Logger log is defined in both Secure.cpp and Depencies.cpp without internal linkage or namespacing.

Error

/usr/bin/ld: build/obj/module/Secure.o: multiple definition of `log'; 
build/obj/module/Depencies.o: first defined here

Update

Encapsulate global loggers within their respective namespaces.

Apply the static keyword for internal linkage within translation units.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions