Home > OS >  How to deal with the compiled using Cmake link MySql times wrong?
How to deal with the compiled using Cmake link MySql times wrong?

Time:11-25

CMakeFiles/Demo. Dir/MySql. C.o: function In ` print_mysql_error ':
MySql. C: (. Text + 0 x1e) : undefined reference to ` mysql_error '
MySql. C: (. Text + 0 x4a) : undefined reference to ` mysql_error '
CMakeFiles/Demo. Dir/MySql. C.o: function In ` the executesql ':
MySql. C: (. Text + 0 x86) : undefined reference to ` mysql_real_query '
CMakeFiles/Demo. Dir/MySql. C.o: function In ` init_mysql ':
MySql. C: (. Text + 0 xa6) : undefined reference to ` mysql_init '
MySql. C: (. Text + 0 xe8) : undefined reference to ` mysql_real_connect '
CMakeFiles/Demo. Dir/MySql. C.o: function In ` CanbusMySqlTest ':
MySql. C: (. Text + 0 x4da) : undefined reference to ` pthread_create '
CMakeFiles/Demo. Dir/MySql. C.o: function In ` RecordDataCsv ':
MySql. C: (. Text + 0 xdab) : undefined reference to ` pthread_create '
CMakeFiles/Demo. Dir/PyCall. C.o: function In ` PyInit ':
PyCall. C: (. Text + 0 x6f) : undefined reference to ` Py_Initialize '
PyCall. C: (. Text + 0 x80) : undefined reference to ` PyRun_SimpleStringFlags'
PyCall. C: (. Text + 0 x91) : undefined reference to ` PyRun_SimpleStringFlags'
CMakeFiles/Demo. Dir/PyCall. C.o: function In ` PyReadcsv ':
PyCall. C: (. Text + 0 XDF) : undefined reference to ` PyImport_ImportModule '
PyCall. C: (. Text + 0 xf6) : undefined reference to ` PyObject_GetAttrString '
PyCall. C: (. Text + 0 x112) : undefined reference to ` Py_BuildValue '
PyCall. C: (. Text + 0 x129) : undefined reference to ` PyObject_CallObject '
PyCall. C: (. Text + 0 x145) : undefined reference to ` PyArg_Parse '
CMakeFiles/Demo. Dir/PyCall. C.o: function In ` PyCallfun ':
PyCall. C: (. Text + 0 x1c5) : undefined reference to ` PyImport_ImportModule '
PyCall. C: (. Text + 0 x1dc) : undefined reference to ` PyObject_GetAttrString '
PyCall. C: (. Text + 0 x1f8) : undefined reference to ` Py_BuildValue '
PyCall. C: (. Text + 0 x20f) : undefined reference to ` PyObject_CallObject '
PyCall. C: (. Text + 0 x22f) : undefined reference to ` PyArg_Parse '
CMakeFiles/Demo. Dir/canbus. C.o: function In ` CanBusTestMode ':
Canbus. C: (. Text + 0 x6b9) : undefined reference to ` pthread_create '
Canbus. C: (. Text + 0 x6de) : undefined reference to ` pthread_create '
Canbus. C: (. Text + 0 x6fe) : undefined reference to ` pthread_create '
CMakeFiles/Demo. Dir/canbus. C.o: function In ` PthreadCanbusTest ':
Canbus. C: (. Text + 0 x866) : undefined reference to ` pthread_create '
CMakeFiles/Demo. Dir/canbus. C.o: function In ` CanbusRecvRecord ':
Canbus. C: (. Text + 0 xc3d) : undefined reference to ` pthread_create '
CMakeFiles/Demo. Dir/canbus. C.o: canbus. C: (. The text + 0 xc64) : more undefined references to ` pthread_create 'follow
Collect2: error: ld returned 1 exit status
CMakeFiles/Demo. Dir/build. The make: 328: a recipe for target 'Demo' failed
Make [2] : * * */Demo Error 1
CMakeFiles/Makefile2:67: the recipe for target 'CMakeFiles/Demo. Dir/all failed
Make [1] : * * * CMakeFiles/Demo. Dir/all Error 2
The Makefile: 83: the recipe for target 'all' failed
Make: * * * [all] Error 2
  • Related