Skip to content

Can you explain what is c-debug? #16615

Answered by sbc100
km19809 asked this question in Q&A
Mar 28, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

libc-debug.a is the debug version of libc.a.. the compiler adds this and other standard libraries to the link line for you.

emcc should also build these libraries if they don't exist already and it should also take care of building these libraries before using them.

In this case you are building a SIDE_MODULE, and under emscirpten anyway, these do not require linking with system libraries such as libc.

However, you build system (maybe python's build system) has added -lc to the command line... this argument gets translated into -lc-debug when building with assertions enabled.

I see several possible solutions:

  1. You could remove the -lc from your command line
  2. emcc could avoid the -lc -> -lc…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@km19809
Comment options

@sbc100
Comment options

@sbc100
Comment options

@km19809
Comment options

Answer selected by km19809
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants