Re: [Vala] How to make shared library in win32?
- From: san hoi <hoisan49 gmail com>
- To: Tal Hadad <tal_hd hotmail com>
- Cc: Vala Mail List <vala-list gnome org>
- Subject: Re: [Vala] How to make shared library in win32?
- Date: Mon, 5 Sep 2011 09:25:30 +0900
Sorry for late response.
$ valac --pkg config --pkg gtk+-2.0 --pkg gee-1.0 --pkg libxml-2.0
--vapidir=../vapi/ *.vala --disable-warnings --library dvw-0.1 -X
-shared -o test_shared.dll
It's works, No problem. [Output files: dvw-0.1.vapi and test_shared.dll.]
Thanks.
2011/9/2, Tal Hadad <tal_hd hotmail com>:
valac --pkg config --pkg gtk+-2.0 --pkg gee-1.0 --pkg libxml-2.0
--vapidir=../vapi/ *.vala --disable-warnings --library dvw-0.1 -X
-fPIC -X -shared -o test_shared.dll
All this in one line. You must pass this two arguments to CC(C
Compiler), which
each one comes after the "-X". See the first link you gave here for
them.
It ends with "-o test_shared.dll" which tell the output name.
As far as I know, this is the only argument in Vala which
passed to the CC without the "-X". Same relationship between
CC and linker.
Date: Thu, 1 Sep 2011 12:16:09 +0900
From: hoisan49 gmail com
To: vala-list gnome org
Subject: [Vala] How to make shared library in win32?
I try to build libdvw shared library. But following error occur.
https://live.gnome.org/Vala/SharedLibSample
http://gitorious.org/libdvw/libdvw
toddw TODDW-PC /C/msys/home/toddw/libdvw/dvw (master)
$
c:/msys/home/toddw/libdvw/dvw/util.vala.c: In function
`_vala_dvw_point_get_property':
c:/msys/home/toddw/libdvw/dvw/util.vala.c:586: warning: passing arg 2 of
`g_valu
e_set_pointer' discards qualifiers from pointer target type
c:/msys/home/toddw/libdvw/dvw/util.vala.c:589: warning: passing arg 2 of
`g_valu
e_set_pointer' discards qualifiers from pointer target type
c:/vala-0.12.0/lib/libmingw32.a(main.o):main.c:(.text+0xbd): undefined
reference
to `WinMain 16'
collect2: ld returned 1 exit status
error: cc exited with status 1
Compilation failed: 1 error(s), 0 warning(s)
I try to use Carl's 13.1 valac environment too. But it's a same result.
Thanks in advance for any suggetions.
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]