Skip to content

Failed to build with SPGDEBUG #516

@lan496

Description

@lan496

@LecrisUT

It may be my silly misunderstanding, but cmake build with the following commands

cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug
cmake --build build

shows the following messages.

/Users/kshinohara/ghq/github.com/lan496/spglib/src/debug.h:49:20: warning: inline function 'warning_memory' is not defined [-Wundefined-inline]
extern inline void warning_memory(char const* what);
                   ^
/Users/kshinohara/ghq/github.com/lan496/spglib/src/kpoint.c:124:9: note: used here
        warning_memory("dense_ir_mapping_table");
        ^
1 warning generated.

I thought CMAKE_BUILD_TYPE=Debug set SPGLIB_DEBUG, and it included the debug functions.
How to compile with the debug functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions