Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
dll => moc.cpp => method() { ... } app => moc.cpp => method() { ... }
=> signal of dll, multiple definition of `Class::Method()'
一个含 signal 的类放在了dll中, Qt会在 moc_XXX.cpp 中为 signal 生成一个方法。
在主程序中引入 .h 使用这个类,Qt也会自动生成一个同名方法。 那么程序在链接时,出现了重复定义的错误。