首页
社区
课程
招聘
[求助]程序编译问题
发表于: 2012-10-8 09:42 3319

[求助]程序编译问题

2012-10-8 09:42
3319
- Define WINNT in the compile flags.
       - On 32-bit Windows machine, run vcvars32.bat which will
         set the all the required path,include libraries required to compile the samples.
         For setting these variables in 64-bit Windows, it is explained below.
       - Add ../bin as an additional PATH environment variable.
       - Add ../include as an additional INCLUDE environment variable.
       - Add ../bin as an additional LIB environment variable.
       - Link with all libraries in the ../lib directory.

小弟在弄OPENSSE时,看到文档是这样写的,可是小弟用它的SDK怎么都编译不过去,请大大指点一下,上面文档中所说的应该怎么去做,要注意什么?小弟是win7 64位系统。

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 372
活跃值: (36)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
2
1、添加路径环境变量
2、添加头文件
3、加载必要的库
2012-10-8 10:13
0
雪    币: 123
活跃值: (101)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
我按它说的做了,就是不知道是什么原因编不过。
只包含了它的一个头文件就报了如下的错:

1>------ 已启动生成: 项目: test_am_sdk, 配置: Debug Win32 ------
1>正在编译...
1>test_am_sdk.cpp
1>e:\agent-csdk-windows-64\include\am_properties.h(183) : error C2146: 语法错误 : 缺少“;”(在标识符“am_properties_is_set”的前面)
1>e:\agent-csdk-windows-64\include\am_properties.h(183) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>e:\agent-csdk-windows-64\include\am_properties.h(184) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>e:\agent-csdk-windows-64\include\am_auth.h(96) : error C2146: 语法错误 : 缺少“;”(在标识符“allow_multiple_selections”的前面)
1>e:\agent-csdk-windows-64\include\am_auth.h(96) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>e:\agent-csdk-windows-64\include\am_auth.h(96) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>e:\agent-csdk-windows-64\include\am_auth.h(168) : error C2146: 语法错误 : 缺少“;”(在标识符“echo_on”的前面)
1>e:\agent-csdk-windows-64\include\am_auth.h(168) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>e:\agent-csdk-windows-64\include\am_auth.h(168) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>e:\agent-csdk-windows-64\include\am_auth.h(374) : error C2146: 语法错误 : 缺少“;”(在标识符“am_auth_has_more_requirements”的前面)
1>e:\agent-csdk-windows-64\include\am_auth.h(374) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>e:\agent-csdk-windows-64\include\am_auth.h(374) : error C2086: “int boolean_t”: 重定义
1>        e:\agent-csdk-windows-64\include\am_properties.h(183) : 参见“boolean_t”的声明
1>e:\agent-csdk-windows-64\include\am_auth.h(374) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>生成日志保存在“file://e:\code\test_am_sdk\Debug\BuildLog.htm”
1>test_am_sdk - 13 个错误,0 个警告
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
2012-10-8 10:25
0
游客
登录 | 注册 方可回帖
返回
//