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

cannot install dmalloc #2

Closed
hqsh opened this issue Sep 26, 2018 · 1 comment
Closed

cannot install dmalloc #2

hqsh opened this issue Sep 26, 2018 · 1 comment

Comments

@hqsh
Copy link

hqsh commented Sep 26, 2018

i cannot find the test result file: logfile.

my compile cmd is:
gcc -DDMALLOC -DDMALLOC_FUNC_CHECK -ldmalloc -I/usr/local/include/libbson-1.0 -I/usr/local/include/libmongoc-1.0 -lmongoc-1.0 -lbson-1.0 test.c

can you help me?

thank you!

@j256
Copy link
Owner

j256 commented Nov 22, 2020

I suspect that the problem is that libdmalloc.a is not installed in /usr/lib or something. You can put it there in which case -ldmalloc should work or you can add it specifically to your compilation line:

gcc -DDMALLOC -DDMALLOC_FUNC_CHECK /path/to/location/of/libdmalloc.a -I/usr/local/include/libbson-1.0 -I/usr/local/include/libmongoc-1.0 -lmongoc-1.0 -lbson-1.0 test.c

@j256 j256 closed this as completed Nov 22, 2020
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

2 participants