我的项目是在C++Builder应用程序中嵌入Python。我使用的是python3.6。你知道吗
我在System Include path中添加了Python的Include
文件夹,在Library path中添加了Python的Libs
文件夹:
Tools > Environment options > C++ Options > Paths and Directories
这里是MyUnit1.cpp
:
#include <vcl.h>
#include <Python.h>
#pragma hdrstop
#include "Unit1.h"
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
但我有个错误:
[bcc32 Error] Unit1.cpp(4): E2209 Unable to open include file 'Python.h'
目前没有回答
相关问题 更多 >
编程相关推荐