Board index » Visual Studio » LNK2005 when using using overloaded malloc/free (dlmalloc)
|
dkisting
|
LNK2005 when using using overloaded malloc/free (dlmalloc)
Visual Studio293
Hi, I want to use dlmalloc in VC C++ Projekt. dlmalloc (g.oswego.edu/dl/html/malloc.html) is a memory pool which performs (in my case) better than using the normal heap management. The files from dlmalloc are one *.c and one *.h file. I tried simply to add these files to my projekt. I then get LNK2005 error (multiple defined symbols) in the Debug Version. It compiles and links fine in the Release Version. But in the Release I get an exception in msize.c when the runtime initializes. I also tried to put dlmalloc into an extra static lib projekt, with the same results. I have tried to get this work for days now and I am not getting any further. With gcc and g++ I can just compile dlmalloc and link it into my application. But with Visual Studio I keep getting the mentioned behaviour. Any suggestions are highly welcome :) Thanks a lot, Chris - |
