Re: Windows build still needed

From: Prashant Bafna <appu.bafna_at_gmail.com>
Date: Fri Jun 22 2012 - 13:34:54 CEST

> About the build errors in Opendocument Plugin (Release) in Windows :
>
>> 2>------ Build started: Project: PluginOpendocument, Configuration:
>> Release Win32 ------
>> 2>   Creating library
>> 2>ODc_util.obj : error LNK2001: unresolved external symbol __imp__UT_strptime
>
> This error is because UT_strptime is not getting exported from
> LibAbiWord. Keeping strptime.c as a C file, i propose to add a header
> file to it and export it from there. (Suggested Patch attached !)
>
> I've used __declspec(dllexport) instead of ABI_EXPORT because
> including ut_types.h in a C file brings in a lot of other errors and i
> didn't see the point in including a C++ header file in a C file.
>
> I've checked this in MSVC where it works, will check for other
> platforms as well.
>

A bit modified way (changes in makefile.am and added ABI_EXPORT) -
attached ! This works for both Windows & Ubuntu.

Thanks
Prashant

Received on Fri Jun 22 13:35:05 2012

This archive was generated by hypermail 2.1.8 : Fri Jun 22 2012 - 13:35:05 CEST