the source file is different from when the module was built

后端 未结 27 2165
無奈伤痛
無奈伤痛 2020-11-29 20:53

This is driving me crazy.

I have a rather large project that I am trying to modify. I noticed earlier that when I typed DbCommand, visual studio did

27条回答
  •  独厮守ぢ
    2020-11-29 21:17

    Check if the location you pointed to using mex() in Matlab is correct (contains lib and obj files which are modified to the last date you compiled the library in Visual studio).

    If this is not the case:

    Make sure you are compiling Visual studio in a mode that saves .lib files :

    1. properties -> Config properties -> General -> Config type -> static library

    2. properties -> Config properties -> General -> Target extension=.lib (instead of exe)

    Make sure the output and intermediate directories match the Matlab directory in

    1. properties -> Config properties -> General -> Output directory
    2. properties -> Config properties -> General -> Intermediate directory

提交回复
热议问题