xlsxio的读写简单c++封装,用于读写策划配置表等
首先要配置cygwin环境
然后安装一下gcc g++ vim gdb make cmake minizip libzip2等,根据需要
然后从cygwin里进入解压出来的libexpat文件夹,用 cmake . && make && make install
这里为了偷懒直接make install了,依赖库自动拷贝到了你的/usr/local/bin/里,注意给策划用的时候把需要的dll拷贝过去
然后从cygwin里进入解压出来的xlsxio-master文件夹 cmake. && make && make install
然后就可以进入解压出来的uniqs_cfg_generator里 sh b.sh进行编译了
代码说明:
c风格简单封装,为避免命名冲突在前面加了uniqs_开头
返回的结构体比较复杂,嵌套比较多,要是想简单可以自己写个类然后放进去即可
注意,这一坨dll都是从 D:cygwin64bin 目录以及 D:cygwin64usrlocalbin目录里拷贝过来的(前提是记得一定要make install,可以省去你一堆包含头文件的路径)
cygexpat-1.dll
cyggcc_s-seh-1.dll
cygstdc++-6.dll
cygwin1.dll
cygxlsxio_read.dll
cygxlsxio_write.dll
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-13 14:44 libexpat
目录 0 2019-04-13 14:44 libexpat.git
文件 397 2019-04-13 14:44 libexpat.gitignore
文件 303 2019-04-13 14:44 libexpat.gitconfig
文件 73 2019-04-13 14:44 libexpat.gitdescription
文件 23 2019-04-13 14:44 libexpat.gitHEAD
目录 0 2019-04-13 14:44 libexpat.githooks
文件 478 2019-04-13 14:44 libexpat.githooksapplypatch-msg.sample
文件 896 2019-04-13 14:44 libexpat.githookscommit-msg.sample
文件 3327 2019-04-13 14:44 libexpat.githooksfsmonitor-watchman.sample
文件 189 2019-04-13 14:44 libexpat.githookspost-update.sample
文件 424 2019-04-13 14:44 libexpat.githookspre-applypatch.sample
文件 1642 2019-04-13 14:44 libexpat.githookspre-commit.sample
文件 1348 2019-04-13 14:44 libexpat.githookspre-push.sample
文件 4898 2019-04-13 14:44 libexpat.githookspre-rebase.sample
文件 544 2019-04-13 14:44 libexpat.githookspre-receive.sample
文件 1492 2019-04-13 14:44 libexpat.githooksprepare-commit-msg.sample
文件 3610 2019-04-13 14:44 libexpat.githooksupdate.sample
文件 13363 2019-04-13 14:44 libexpat.gitindex
目录 0 2019-04-13 14:44 libexpat.gitinfo
文件 240 2019-04-13 14:44 libexpat.gitinfoexclude
目录 0 2019-04-13 14:44 libexpat.gitlogs
文件 194 2019-04-13 14:44 libexpat.gitlogsHEAD
目录 0 2019-04-13 14:44 libexpat.gitlogs
efs
目录 0 2019-04-13 14:44 libexpat.gitlogs
efsheads
文件 194 2019-04-13 14:44 libexpat.gitlogs
efsheadsmaster
目录 0 2019-04-13 14:44 libexpat.gitlogs
efs
emotes
目录 0 2019-04-13 14:44 libexpat.gitlogs
efs
emotesorigin
文件 194 2019-04-13 14:44 libexpat.gitlogs
efs
emotesoriginHEAD
目录 0 2019-04-13 14:44 libexpat.gitobjects
目录 0 2019-04-13 14:44 libexpat.gitobjectsinfo
............此处省略542个文件信息
const char features[] = {“
“
“C_FEATURE:“
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304
“1“
#else
“0“
#endif
“c_function_prototypes
“
“C_FEATURE:“
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
“1“
#else
“0“
#endif
“c_restrict
“
“C_FEATURE:“
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L
“1“
#else
“0“
#endif
“c_static_assert
“
“C_FEATURE:“
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
“1“
#else
“0“
#endif
“c_variadic_macros
“
};
int main(int argc char** argv) { (void)argv; return features[argc]; }
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-13 14:44 libexpat
目录 0 2019-04-13 14:44 libexpat.git
文件 397 2019-04-13 14:44 libexpat.gitignore
文件 303 2019-04-13 14:44 libexpat.gitconfig
文件 73 2019-04-13 14:44 libexpat.gitdesc
文件 23 2019-04-13 14:44 libexpat.gitHEAD
目录 0 2019-04-13 14:44 libexpat.githooks
文件 478 2019-04-13 14:44 libexpat.githooksapplypatch-msg.sample
文件 896 2019-04-13 14:44 libexpat.githookscommit-msg.sample
文件 3327 2019-04-13 14:44 libexpat.githooksfsmonitor-watchman.sample
文件 189 2019-04-13 14:44 libexpat.githookspost-update.sample
文件 424 2019-04-13 14:44 libexpat.githookspre-applypatch.sample
文件 1642 2019-04-13 14:44 libexpat.githookspre-commit.sample
文件 1348 2019-04-13 14:44 libexpat.githookspre-push.sample
文件 4898 2019-04-13 14:44 libexpat.githookspre-reba
文件 544 2019-04-13 14:44 libexpat.githookspre-receive.sample
文件 1492 2019-04-13 14:44 libexpat.githooksprepare-commit-msg.sample
文件 3610 2019-04-13 14:44 libexpat.githooksupdate.sample
文件 13363 2019-04-13 14:44 libexpat.gitindex
目录 0 2019-04-13 14:44 libexpat.gitinfo
文件 240 2019-04-13 14:44 libexpat.gitinfoexclude
目录 0 2019-04-13 14:44 libexpat.gitlogs
文件 194 2019-04-13 14:44 libexpat.gitlogsHEAD
目录 0 2019-04-13 14:44 libexpat.gitlogs
efs
目录 0 2019-04-13 14:44 libexpat.gitlogs
efsheads
文件 194 2019-04-13 14:44 libexpat.gitlogs
efsheadsmaster
目录 0 2019-04-13 14:44 libexpat.gitlogs
efs
emotes
目录 0 2019-04-13 14:44 libexpat.gitlogs
efs
emotesorigin
文件 194 2019-04-13 14:44 libexpat.gitlogs
efs
emotesoriginHEAD
目录 0 2019-04-13 14:44 libexpat.gitob
目录 0 2019-04-13 14:44 libexpat.gitob
............此处省略542个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)