Jerry Gay (via RT) wrote:
> # New Ticket Created by Jerry Gay
> # Please include the string: [perl #39760]
> # in the subject line of all future correspondence about this issue.
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39760 >
>
>
> compilers\imcc\imcparser.c
> imcparser.c
> compilers\imcc\imcparser.c(878) : warning C4273: 'malloc' :
> inconsistent dll linkage
> compilers\imcc\imcparser.c(885) : warning C4273: 'free' : inconsistent
> dll linkage
>
> compilers\ast\astparser.c
> astparser.c
> compilers\ast\astparser.c(1298) : warning C4102: 'yyerrlab1' :
> unreferenced label
>
> compilers\imcc\main.c
> main.c
> compilers\imcc\main.c(480) : warning C4273: 'imcc_init' : inconsistent
> dll linkage
In the current head (r13307) imcparser.c seems to be mostly fine.
compilers\imcc\imcparser.c
imcparser.c
compilers/imcc/imcparser.c(4098) : warning C4102: 'yyerrlab1' :
unreferenced label
But compilers/imcc/main.c still suffers.
compilers\imcc\main.c
main.c
compilers\imcc\main.c(480) : warning C4273: 'imcc_init' :
inconsistent dll linkage
Attached patch brings the declarations of imcc_init in main.c and imc.h
in sync.
compilers\imcc\main.c
main.c
Ron
Index: compilers/imcc/main.c
===================================================================
--- compilers/imcc/main.c (revision 13307)
+++ compilers/imcc/main.c (working copy)
@@ -477,7 +477,7 @@
}
}
-extern void imcc_init(Parrot_Interp interp);
+PARROT_API extern void imcc_init(Parrot_Interp interp);
int
main(int argc, char * argv[])