博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
glib-2.49.4-msys-x86-staticLib.7z
阅读量:5914 次
发布时间:2019-06-19

本文共 3558 字,大约阅读时间需要 11 分钟。

glib-2.49.4 MSYS 静态库 编译 export LIBFFI_CFLAGS=" -I/usr/local/lib/libffi-3.2.1/include " \export LIBFFI_LIBS=" -lffi " \export ZLIB_CFLAGS=-I/usr/local/include \export ZLIB_LIBS=-lz \export CFLAGS=" -I/usr/local/include -O2 -Wall -march=i686 -mms-bitfields -mthreads " \export CPPFLAGS=" -I/usr/local/include " \export LDFLAGS=" -L/usr/local/lib " \export LIBS=' -lpsapi -lws2_32 -lmswsock -lpthread './configure \--prefix=/usr/local \--enable-static \--disable-shared \--disable-debug \--disable-gtk-doc \--with-pcre=internal \--enable-silent-rules__declspec(dllexport)                    fix to -->   __attribute__((visibility ("default")))__stdcall _export                        fix to -->   __attribute__((visibility ("default")))define PNG_IMPEXP __declspec(dllimport)  fix to -->   define PNG_IMPEXP__attribute__((visibility ("hidden")))   fix to -->   __attribute__((visibility ("default")))delete all DllMain functionconfig.h-------------------------------------------/* #define _GLIB_EXTERN __attribute__((visibility("default"))) __declspec(dllexport) extern */#define _GLIB_EXTERN __attribute__((visibility("default")))...glib/gmessages.c-------------------------------------------#include 
//#include
//#include
-------------------------------------------glib_genmarshalglib-compile-resources-------------------------------------------tests\gobject\Makefile-------------------------------------------# glib_genmarshal = $(top_builddir)/gobject/glib-genmarshalglib_genmarshal = echogio\tests\Makefile-------------------------------------------#glib_compile_resources = $(top_builddir)/gio/glib-compile-resourcesglib_compile_resources = echofix sourcegio/gtype.h add-------------------------------------------void gobj_init(void);gio/gtype.c add-------------------------------------------void gobj_init(void){ gobject_init ();}-------------------------------------------fix tools source-------------------------------------------gio/glib-compile-resources.cgio/glib-compile-schemas.cgio/gio-querymodules.cgio/gsettings-tool.cgio/gresource-tool.cgio/gdbus-tool.cgio/gio-tool.c-------------------------------------------#include "glib-init.h"#include "../gobject/gobject.h"main()... g_clock_win32_init (); g_thread_win32_init (); glib_init (); gobj_init ();...--------------------------------------------------------------------------------------gobject/glib-genmarshal.c <-- Makefile add $(top_builddir)/gobject/libgobject-2.0.la gobject/gobject-query.c -------------------------------------------#include "glib/glib-init.h"#include "gobject.h"main()... g_clock_win32_init (); g_thread_win32_init (); glib_init (); gobj_init ();...------------------------------------------- ------------------------------------------- tests\gobject\performance.c tests\gobject\performance-threaded.c -------------------------------------------#include "glib.h"#include
main()... g_clock_win32_init (); g_thread_win32_init (); glib_init (); gobj_init ();...-------------------------------------------#include
#include
#include
int main(void){ g_clock_win32_init (); g_thread_win32_init (); glib_init (); gobj_init (); g_printf("Hello world!\n"); return 0;}gcc hello.c `pkg-config --cflags --static --libs glib-2.0 gobject-2.0` -o hello
cpp 中使用时 需加
extern "C"
extern "C" {#include 
#include
#include
}链接:http://pan.baidu.com/s/1dFmJmDF 密码:kbsn

转载于:https://www.cnblogs.com/nlsoft/p/5746823.html

你可能感兴趣的文章
mysql实现vsftp虚拟用户访问
查看>>
(LNMP) How To Install Linux, nginx, MySQL, PHP
查看>>
write back vs write through
查看>>
各种链接
查看>>
开发工程师未来应具备的能力
查看>>
我的友情链接
查看>>
《Spring实战》第四版读书笔记 第一章 Spring之旅
查看>>
那些年,一起学的Java 2-4
查看>>
RedHat已更改其开源许可规则
查看>>
redis集群搭建
查看>>
管道符和作业控制,shell变量和环境变量配置文件
查看>>
DirectX3D设备丢失(lost device)的处理(一)
查看>>
来自田野的回音——《背过身去的大娘娘》的读后感范文2600字
查看>>
LNMP架构 (Ⅱ)——nginx相关配置、nginx代理
查看>>
神级python程序员只需要一个公众号,再也不会错过重要资讯
查看>>
双十一流量洪峰 支撑阿里核心业务的云数据库揭秘
查看>>
OSChina 周一乱弹 ——程序员跟产品经理撕逼必须掌握的套路
查看>>
Linux系统启动流程详解
查看>>
Magento(CE1.X)自带模块解析五
查看>>
Factory Method模式 (一)
查看>>