views:

157

answers:

1

I am trying to use boost threads in a project having common language runtime support. I get the following linker error. error LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef: (dummy): (0x01000073).

If i comment the line instantiating the boost thread, i do not get any linker error.

I tried looking online for fixing this error, at one such place it was suggested to use " #define BOOST_THREAD_USE_DLL" before including any boost libraries. I tried this but it still gives me the same error.

There is a related thread, ( http://stackoverflow.com/questions/810827/lnk2022-metadata-operation-failed-driving-me-insane ) but it isnt the same problem but somewhat similar. I tried the fix suggested there but still no luck.

Does anyone know how to fix this?

A: 

Visual Studio doesn't support r-value references. Double-check your boost configuration options to make sure you're using the correct toolset. (see the boost documentation)

Also, ensure you have the current version of boost.

-PaulH

PaulH
i m using boost version 1.37 and i cannot update it to new version. Is it because of an older version?
Aaron Berry