使用QtCreator时,我犯了一些错误。编译器找到它并显示错误消息
from sympy import symbols
from sympy.printing.theanocode import theano_function
import numpy as np
x,y,z = symbols('x y z')
sympy_f = x+y+z # a sympy-function which depends on 3 variables
theano_f = theano_function([x,y,z], [sympy_f]) # Theano-compiled function which depends on 3 scalars
np_a = np.array([[1,1,1],[2,2,2],[-1,-2,0],[0,2,0]])
np_b = np.array([theano_f(*x) for x in np_a]) # The obtained four numbers
#should be recorded into the numpy-array np_b
print(np_b)
在我的源文件中
Object::connect: No such slot RegisterWidget::OctalR_clicked() in ./ui_registerwidget.h:65
Object::connect: (sender name: 'OctalButton')
Object::connect: (receiver name: 'RegisterWidget')
明确存在。我收到错误消息,引用了一个不存在的源头行。好的,我知道它是动态生成的,我可以使用#include "ui_registerwidget.h"
生成它,这样我就可以看出问题是什么。我不明白,为什么在调试过程中这种处理这个文件的方式对我有好处?