Archived

This topic is now archived and is closed to further replies.

Dr Pain

Multithreaded libraries

Recommended Posts

Dr Pain    122
I need to use the multithreaded libraries for my application, but because you linked with the single-threaded ones, I can''t link your libs in. Any chance you could release a multi-threaded version of your libraries? Just change the link options and you''ll be set. Thanks, Dave

Share this post


Link to post
Share on other sites
sduggan    122
Dave,

If you ignore the libc and the libcdb librarys when you link in the multi thread versions with PR, it works. My app uses multi-thread and thats all I did.

Share this post


Link to post
Share on other sites
Dr Pain    122
I finally got around to trying that, and I still get the same "already defined" linker errors (23 of them), including __cinit, _exit, __exit, __cexit... All of them are in LIBCMTD.lib.

The exact error message is:
LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMTD.lib(crt0dat.obj)

I tried ignoring the LIBCMTD library with the same results.

I would think that since the multi/single threaded option is a compile time setting, that the library would have to be compiled as either multi or single threaded.

Share this post


Link to post
Share on other sites
zygote_mm    122
dont link with libc.lib << this was already mentioned to you.

project->settings->link::ignore libraries
[libcd.lib libc.lib]



Edited by - zygote_mm on August 7, 2001 2:21:31 PM

Share this post


Link to post
Share on other sites
Dr Pain    122
Now it just gets weirder.

As I said above, I tried it ignoring libc.lib and libcdb.lib with the same errors. (that''s what "I finally got around to trying that" means, zygote

Then I closed Visual Studio and restarted it without changing anything, and it worked. Very strange.

So it looks like it does work. Guess it''s a VS "feature" that you have to close and re-open it for the setting to stick.

Thanks sduggan.

Share this post


Link to post
Share on other sites
Gorky    122
Sometimes you have to save a workspace, for VS to allow certain project and workspace changes.
You did that by closing probably.

Share this post


Link to post
Share on other sites
jevdsnny    122
I''ve tried every combination on this, just keep getting the same 23 link errors as above...any other hints? Obviously I''ve tried ignoring libc.lib and libcd.lib with no sucess. Also tried ignoring all default libraries which results in lots of missing externs. It seems to be just ignoring my ignore (no pun). Tried shutting down / restarting, saving workspace, starting new project...help!

Share this post


Link to post
Share on other sites