#include "sum.h" using namespace std; int main() { int n1, n2; cout << "输入两个整数: "; cin >> n1 >> n2; cout << "sum is " << sum(n1,n2) << endl; while(n1 != n2) { if(n1 > n2) n1 -= n2; else n2 -= n1; } cout << "HCF = " << n1 << endl; system...
C:\Users\11955\AppData\Local\Temp\ccLmGIL8.o:main.cpp:(.text+0x76): undefined reference to `__imp_PyImport_ImportModule'C:\Users\11955\AppData\Local\Temp\ccLmGIL8.o:main.cpp:(.text+0x91):undefinedreference to`__imp_PyObject_GetAttrString' C:\Users\11955\AppData\Local\Temp\ccLmGIL...
2、由于没有链接静态库而报错(同上,暂时只有傻瓜式解决办法,使用makefile解决此问题请看我之后的博客:在makefile中链接静态库) C:\Users\11955\AppData\Local\Temp\ccLmGIL8.o:main.cpp:(.text+0xb): undefined reference to `__imp_Py_Initialize' C:\Users\11955\AppData\Local\Temp\ccLmGIL8.o:main....
so I installed it, installed C/C++ IntelliSense v0.12.4 and followed instructions on the VS Code website to make a c_cpp_properties.json file and copied the code into it like they said. When I open my .cpp project that I had made in notepad++, I get the error: ...
"filterStderr": true, "filterStdout": false, "serverStarted": "target halted due to debug-request, current mode: Thread", "preLaunchTask": "mbed", "setupCommands": [ { "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false }, { ...
C:\Users\11955\AppData\Local\Temp\ccLmGIL8.o:main.cpp:(.text+0x3e): undefined reference to `__imp_Py_Finalize' C:\Users\11955\AppData\Local\Temp\ccLmGIL8.o:main.cpp:(.text+0x56): undefined reference to `__imp_Py_Initialize' ...