|
DUMB doesn't work in MSVC |
miran
Member #2,407
June 2002
|
I'm trying to use DUMB in my game. Everything compiles fine but when I link, I get this error: Quote:
Linking... So I do what the message says: I use /nodefaultlib:LIBC.lib but then I get this: Quote:
Linking... What's wrong here? And don't tell me I'm mixing singlethreaded and multithreaded versions of the standard libraries because I have no idea what that means. I just made a new project, added one of the examples that come with DUMB, added "aldmb.lib dumb.lib alleg.lib" to the beginning of the linker options and hit the compile button. And it doesn't work! EDIT: Quote:
Linking... And if I use /nodefaultlib:"MSVCRT.lib" I get this: Quote:
Linking...
-- |
Bruce Perry
Member #270
April 2000
|
D'oh! Didn't see this thread until you mentioned it elsewhere Try linking with /MD. Since DUMB is statically linked, you need to link with the same libc implementation that DUMB uses; /MD selects the multithreaded DLL version. You would also have to use /MD if you were static-linking Allegro. This will be in the docs (especially the FAQ) for the next release. [EDIT] Quote: And don't tell me I'm mixing singlethreaded and multithreaded versions of the standard libraries because I have no idea what that means. Did someone already suggest that theory or something? Anyway, it's the multithreaded DLL library you need. It looks as if you were trying to use the static multithreaded library. Let us know if it works now -- |
miran
Member #2,407
June 2002
|
Whoohoo! It works! Thanks a lot! Anyway, I read in some older threads (this problem seems to come up often) that you're supposed to link with the multithreaded library but noone said anything about DLL vs static and I never thought of trying DLL myself. Thanks again! Now if I could only write some good music to put in my game... -- |
Bruce Perry
Member #270
April 2000
|
Indeed - Bob told me about the problem, but I didn't catch the "DLL" part, and it was a while before I fully understood. I went to the computer room (where they have MSVC installed), and, despite dire file space limitations, I managed to reproduce the error myself -- |
|