将C int嵌入到Application中 [英] Embedding C int into Application

查看:71
本文介绍了将C int嵌入到Application中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我一直在努力将Cint嵌入到Visual Studio 2008中的C ++应用程序中。下面是我执行的步骤。



1)将cint文件夹复制到我的项目文件夹。

2)为我的项目添加了cint项目。

3)在我的项目设置中 - >链接器附加依赖项 - > libcint.lib

4)我包含了头文件#include" cint / G__ci.h"

#include" cint / src / Global.h"

#include" cint / libcint / cint_header.h"在我的项目文件(主函数)中。

5)在main()函数中,我正在初始化G__init_cint(cint)并加载cxx文件G__loadfile(script.cxx)

6)如果没有头文件(内置头文件),请成功构建环境。

7)我包含头文件的那一刻(#include< stdio.h> )在script.cxx文件中,然后错误将无法打开< stdio.h> ;.

8)所有头文件都会发生这种情况,例如< iostream.h>,< math.h>



在这方面请帮忙。



删除了虚假代码块, HTML编码 - OriginalGriff [/ edit]

Hi,
I have been working on embedding Cint into our C++ application in Visual Studio 2008.Below are the steps I performed.

1)Copied cint folder to my project folder.
2) Added cint project to my project.
3) In my project settings -> linker additional dependencies -> libcint.lib
4)I included Header files #include "cint/G__ci.h"
#include "cint/src/Global.h"
#include "cint/libcint/cint_header.h" in my project file(main function).
5) In main() function I am initializing G__init_cint("cint") and loading a "cxx" file G__loadfile("script.cxx")
6)Build the environment successfully if there is no header file(inbuilt header files).
7) The moment I include a header file( #include <stdio.h>) in the script.cxx file then error will come as can not open <stdio.h>.
8)this is happeneing for all the header files like <iostream.h>,<math.h>

Kindly help in this regard.

[edit]Spurious code block removed, HTML encoded - OriginalGriff[/edit]

推荐答案

您需要在构建设置中包含这些包含的路径。
you need to include the path of these includes in the build settings.


这篇关于将C int嵌入到Application中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆