fatal error LNK1276: does not start with '/' RRS feed

  • Question

  • #pragma comment(linker, "/libpath: \"C:\\OgreSDK\\OgreSDK_vc10_v1-7-1\\boost_1_42\\lib\"")

    The code above generates the following error:

    1>Main.obj : fatal error LNK1276: invalid directive 'C:\OgreSDK\OgreSDK_vc10_v1-7-1\boost_1_42\lib' found; does not start with '/'

    I'm trying to compile the code using MSVC 2010. I've read on some forums that in MSVC 2008 it should work. Is it true? If it is how to make it work here too?



    Thursday, August 5, 2010 8:19 AM