Link Error: unresolved external symbol __iob

MRWAudiod.lib(xmainterleave.obj) : error LNK2001: unresolved external symbol __iob

This is a linker error I'm unable to get rid of. I'm using VS 2005. The layout of my project is I'm bringing in XBOX360's XMAEncoder.lib I'm then wrapping this in a managed DLL thats using MultiThreaded DLL and /CLR compiler options. Reading around the web I see that __IOB used to be in the libcp.lib but that its no longer present in 2005.

I'm forced to ignore the libs libcmt.lib; libcmtd.lib.

Does anyone know how to get rid of this



Answer this question

Link Error: unresolved external symbol __iob

  • Jim_Martin

    Twigg wrote:

    I'm forced to ignore the libs libcmt.lib; libcmtd.lib.

    Whatever your reason was for ignoring these libs, ignoring them is the reason you're getting linker errors. It looks like you're going to have to figure out why you are forced to ignore those libs, and correct it from there.

    LNK2001s/LNK2019s are usually a result of mixing debug libs with release libs (or libs compiled with another version of Visual Studio). It can also be caused by static libraries not using the same runtime library (project properties -> c/c++ -> code generation -> runtime library -> should be /MDd for debug and /MD for release).



  • Link Error: unresolved external symbol __iob