Skip to content

Passing linker arguments into cldoc is broken #134

@kennymalac

Description

@kennymalac

Hi, I'm trying to pass -std=c++17 into cldoc and I get this warning:

warning: std=c++17: 'linker' input unused [-Wunused-command-line-argument]

This is the command my Makefile is running:

usr/local/bin/cldoc generate -I/home/ken/Programming/cpp/tinycdn std=c++17 -- --output doc/ file.cpp etc.cpp 

If I do something simple like the below command, I get an error too (probably specific to my setup):

cldoc generate -std=c++17 -- src/* --basedir src/  --output docs/
Processing main.cpp
Processing master.cpp
Processing file.cpp
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/cinttypes:58:11: error: no member named 'imaxdiv_t' in the global namespace
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/cinttypes:61:11: error: no member named 'imaxabs' in the global namespace
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/cinttypes:62:11: error: no member named 'imaxdiv' in the global namespace
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/cinttypes:68:11: error: no member named 'strtoimax' in the global namespace
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/cinttypes:69:11: error: no member named 'strtoumax' in the global namespace
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/cinttypes:72:11: error: no member named 'wcstoimax' in the global namespace
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/cinttypes:73:11: error: no member named 'wcstoumax' in the global namespace
/home/ken/Programming/cpp/tinycdn/src/middlewares/file.cpp:215:33: error: no member named 'strtoumax' in namespace 'std'

Could not generate documentation due to parser errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions