0
0

Hi I’m developing a small tool for a game, which I want to play music in the background (a keygen type of app). No Keygen! But the same look and feel like the most keygens have… Actually it just sets a few settings for the game and then launches it… Anyway, I dont want it to require any dll files, thats why I’m using Minifmod and MFC with static library.
However, when I compile this, it gives me linking errors. It works just fine with MFC shared library, but I don’t rly want that, It is this part of my code that gives me errors:

[code:hvlhr51t]

if defined(PLAYMSX)

FSOUND_File_SetCallbacks(memopen, memclose, memread, memseek, memtell);
mod = FMUSIC_LoadSong("XM", NULL); /* sampleloadcallback); */
if (mod == NULL)
{
    AfxMessageBox("The SFX won't work for some ****ing reson\n//Estrayk");
    return 0;
}
/* Start the music */
FMUSIC_PlaySong(mod);

endif

[/code:hvlhr51t]

Gives me these errors:
[code:hvlhr51t]
GameLauncher error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
GameLauncher error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
GameLauncher error LNK2005: _calloc already defined in libcmtd.lib(dbgheap.obj)
GameLauncher error LNK2005: _free already defined in libcmtd.lib(dbgheap.obj)
GameLauncher fatal error LNK1169: one or more multiply defined symbols found
GameLauncher warning LNK4098: defaultlib ‘MSVCRTD’ conflicts with use of other libs; use /NODEFAULTLIB:library
[/code:hvlhr51t]
I’m using Visual Studio 2003
And now, is there anyway to fix this? I’m not rly that good with coding and MFC and I tryed to search the net for answers but I dont find any, I hope somebody can help =) I’d be very greateful! Greets

  • You must to post comments
0
0

go into code generation in your project settings, look for runtime library options, choose ‘multithreaded dll’ for release and ‘multithreaded debug dll’ for debug.

  • You must to post comments
0
0

I already had that set, but thx anyway… found the solution..
Just ignore this library MSVCRTD.lib. And it will work like a charm =)

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.