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

linker error when building libtcmalloc_minimal in Release mode on VC7.1 Windows 2003 with 0.92 #26

Closed
GoogleCodeExporter opened this issue Aug 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Build libtcmalloc_minimal in Release mode.
2.
3.

What is the expected output? What do you see instead?
Linking...
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _free already defined in tcmalloc.obj
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _malloc already defined in
tcmalloc.obj
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: _free already defined in
tcmalloc.obj; second definition ignored
MSVCRT.lib(MSVCR71.dll) : warning LNK4006: _malloc already defined in
tcmalloc.obj; second definition ignored
   Creating library
D:\GoogleCode\perftools\google-perftools-0.92\Release/libtcmalloc_minimal.lib
and object
D:\GoogleCode\perftools\google-perftools-0.92\Release/libtcmalloc_minimal.exp
D:\GoogleCode\perftools\google-perftools-0.92\Release/libtcmalloc_minimal.dll
: fatal error LNK1169: one or more multiply defined symbols found

libtcmalloc_minimal - 3 error(s), 2 warning(s)


What version of the product are you using? On what operating system?
0.92 on Windows 2003

Please provide any additional information below.


Original issue reported on code.google.com by muthuni...@gmail.com on 5 Aug 2007 at 7:18

@GoogleCodeExporter
Copy link
Author

Yes, unfortunately release mode doesn't work well on perftools 0.92.  A lot of 
the
work I've been doing for the next release has been to fix this, and other 
related
problems with the windows build.  I expect perftools 0.93 will be out soon.

Original comment by csilv...@gmail.com on 6 Aug 2007 at 4:20

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Release mode works on perftools 0.93 now, which is just released.  In fact, all 
the
windows stuff should work much more reliably now than before.

Original comment by csilv...@gmail.com on 17 Aug 2007 at 9:34

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant