Recompiling mapi.c
Posted: Wed Feb 28, 2007 9:39 am
Hi,
I'm trying to recompile mapi.c to use the extensions from Michael Kocum using xHarbour builder (#define KOCUM), but can't seem to get it to compile, do to function definition clashes
xcc.exe -Fo"xobj\mapi.obj" -D __HARBOUR__ -D __FLAT__ -I"\devmast" -I"\dev\alex" -I"\fwh\include" -I"d:\xHB\include" -I"d:\xHB\c_include" -I"d:\xHB\c_include\win" -I"d:\xHB\c_include\msvc" "d:\fwall\source\modapi\mapi.c"
d:\fwall\source\modapi\mapi.c(261): error: Redeclaration of 'MAPISENDMAIL' previously declared at d:\xHB\c_include\win\Mapi.h(141): found 'void __cdecl function (void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, MapiMessage *, unsigned long, unsigned long)'.
d:\fwall\source\modapi\mapi.c(369): error: Redeclaration of 'MAPIRESOLVENAME' previously declared at d:\xHB\c_include\win\Mapi.h(159): found 'void __cdecl function (void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, char *, unsigned long, unsigned long, MapiRecipDesc * *)'.
d:\fwall\source\modapi\mapi.c(415): error: Redeclaration of 'MAPIADDRESS' previously declared at d:\xHB\c_include\win\Mapi.h(155): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long,char *, unsigned long, char *, unsigned long, MapiRecipDesc *, unsigned long, unsigned long, unsigned long *, MapiRecipDesc * *)'.
d:\fwall\source\modapi\mapi.c(543): error: Redeclaration of 'MAPIFINDNEXT' previously declared at d:\xHB\c_include\win\Mapi.h(145): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, char *, char *, unsigned long, unsigned long, char *)'.
d:\fwall\source\modapi\mapi.c(590): error: Redeclaration of 'MAPIREADMAIL' previously declared at d:\xHB\c_include\win\Mapi.h(147): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, char *, unsigned long, unsigned long, MapiMessage * *)'.
d:\fwall\source\modapi\mapi.c(814): error: Redeclaration of 'MAPIDELETEMAIL' previously declared at d:\xHB\c_include\win\Mapi.h(151): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, char *, unsigned long, unsigned long)'.
d:\fwall\source\modapi\mapi.c(853): error: Redeclaration of 'MAPISENDDOCUMENTS' previously declared at d:\xHB\c_include\win\Mapi.h(143): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, char *, char *, char *, unsigned long)'.
Any ideas on how to solve this?
I'm trying to recompile mapi.c to use the extensions from Michael Kocum using xHarbour builder (#define KOCUM), but can't seem to get it to compile, do to function definition clashes
xcc.exe -Fo"xobj\mapi.obj" -D __HARBOUR__ -D __FLAT__ -I"\devmast" -I"\dev\alex" -I"\fwh\include" -I"d:\xHB\include" -I"d:\xHB\c_include" -I"d:\xHB\c_include\win" -I"d:\xHB\c_include\msvc" "d:\fwall\source\modapi\mapi.c"
d:\fwall\source\modapi\mapi.c(261): error: Redeclaration of 'MAPISENDMAIL' previously declared at d:\xHB\c_include\win\Mapi.h(141): found 'void __cdecl function (void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, MapiMessage *, unsigned long, unsigned long)'.
d:\fwall\source\modapi\mapi.c(369): error: Redeclaration of 'MAPIRESOLVENAME' previously declared at d:\xHB\c_include\win\Mapi.h(159): found 'void __cdecl function (void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, char *, unsigned long, unsigned long, MapiRecipDesc * *)'.
d:\fwall\source\modapi\mapi.c(415): error: Redeclaration of 'MAPIADDRESS' previously declared at d:\xHB\c_include\win\Mapi.h(155): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long,char *, unsigned long, char *, unsigned long, MapiRecipDesc *, unsigned long, unsigned long, unsigned long *, MapiRecipDesc * *)'.
d:\fwall\source\modapi\mapi.c(543): error: Redeclaration of 'MAPIFINDNEXT' previously declared at d:\xHB\c_include\win\Mapi.h(145): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, char *, char *, unsigned long, unsigned long, char *)'.
d:\fwall\source\modapi\mapi.c(590): error: Redeclaration of 'MAPIREADMAIL' previously declared at d:\xHB\c_include\win\Mapi.h(147): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, char *, unsigned long, unsigned long, MapiMessage * *)'.
d:\fwall\source\modapi\mapi.c(814): error: Redeclaration of 'MAPIDELETEMAIL' previously declared at d:\xHB\c_include\win\Mapi.h(151): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, unsigned long, char *, unsigned long, unsigned long)'.
d:\fwall\source\modapi\mapi.c(853): error: Redeclaration of 'MAPISENDDOCUMENTS' previously declared at d:\xHB\c_include\win\Mapi.h(143): found 'void __cdecl function(void)' expected 'unsigned long __stdcall function(unsigned long, char *, char *, char *, unsigned long)'.
Any ideas on how to solve this?