Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing linker arguments into cldoc is broken #134

Open
kennymalac opened this issue Apr 17, 2018 · 0 comments
Open

Passing linker arguments into cldoc is broken #134

kennymalac opened this issue Apr 17, 2018 · 0 comments

Comments

@kennymalac
Copy link

kennymalac commented Apr 17, 2018

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

@kennymalac kennymalac changed the title Pass linker arguments into cldoc Passing linker arguments into cldoc is broken Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant