Yes I use MSYS with Mingw32.
I did a
1) chicken-uninstall ezxdisp
2) chicken-install ezdisp
The chicken-install command gives me a lot of incompatible pointer type errors like follows
------------------------------------- snip -----------------------------------------------------------
""c:\chicken\bin\csc"" -feature compiling-extension -setup-mode -c -O3 -d1
-X easyffi ezxdisp.scm -unit ezxdisp -I. -j ezxdisp
ezxdisp.c: In function 'stub732':
ezxdisp.c:131:1: warning: passing argument 6 of 'ezx_circle_3d' from incompatibl
e pointer type
ezxdisp.h:130:6: note: expected 'const struct ezx_color_t *' but argument is of
type 'double *'
ezxdisp.c: In function 'stub710':
ezxdisp.c:145:1: warning: passing argument 2 of 'ezx_poly_3d' from incompatible
pointer type
ezxdisp.h:128:6: note: expected 'struct ezx_point3d_t *' but argument is of type
'double *'
ezxdisp.c:145:1: warning: passing argument 7 of 'ezx_poly_3d' from incompatible
pointer type
ezxdisp.h:128:6: note: expected 'const struct ezx_color_t *' but argument is of
type 'double *'
ezxdisp.c: In function 'stub688':
ezxdisp.c:158:1: warning: passing argument 6 of 'ezx_str_3d' from incompatible p
ointer type
ezxdisp.h:126:6: note: expected 'const struct ezx_color_t *' but argument is of
type 'double *'
ezxdisp.c: In function 'stub632':
ezxdisp.c:200:1: warning: passing argument 8 of 'ezx_line_3d' from incompatible
pointer type
ezxdisp.h:121:6: note: expected 'const struct ezx_color_t *' but argument is of
type 'double *'
ezxdisp.c: In function 'stub570':
ezxdisp.c:228:1: warning: passing argument 8 of 'ezx_fillarc_2d' from incompatib
le pointer type
ezxdisp.h:115:6: note: expected 'const struct ezx_color_t *' but argument is of
type 'double *'
----------------------------- snip ------------------------------------------------------------------------------------
Inspite of this i am still getting the same error message when I do a static compile. The dynamic linking works though.
"(require) cannot load extension ezxdisp
##sys#require <--"
On Wed, Nov 3, 2010 at 9:17 AM, Felix
<address@hidden> wrote:
From: Joe Python <address@hidden>
Subject: [Chicken-users] Static linking program which uses 'ezxdisp' egg
Date: Tue, 2 Nov 2010 10:01:00 -0400
> My knowledge about gcc compiler/linker is somewhere near to minimalistic.
>
> I wrote a program using the 'ezxdisp' egg in M$ Windows.
>
> The ONLY WAY I am able to successfully compile the program and run is using
> the command
> "*csc ezxx.scm -deploy*" and then copy the ezxdisp.so library(101kB) from
> C:\chicken\lib\chicken\5 to where the exe file resides.
>
> I would prefer to statically link the library. If I compile using "csc
> ezxx.scm -static" and then run the exe file, I get a GUI message
>
> "(require) cannot load extension ezxdisp
> ##sys#require <--"
>
> and then fails to execute the program. IS there a correct way to compile the
> program statically into ONE 'exe' file?
>
I have updated the ezxdisp egg to support static linking (version 2.5).
I have only tested it on Linux, though. Do you have MSYS installed or
plain mingw32?
cheers,
felix