Re: dostats_ng for Windows
Posted in 2010
Topics: Installation, Setup & Upgrades, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
struct tm is a UNIX time structure it is defined in sys/time.h on most UNIX systems or in a sub-include that's pulled in by that file. I have never tried to compile dostats_ng.ec on Windows, so I can't help much. Sorry Dirk. Just an idea, compile and run dostats in a Linux VM on the box or run it remotely from a Linux box or VM. Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) IIUG Board of Directors (art@iiug.org) Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Fri, Jul 23, 2010 at 5:28 AM, Dirk Niemeier <dirk.niemeier@stueken.de>wrote: > Hi, > I try to compile the Art S. Kagel programm dostats_ng for Windows > without success. > The Makefile sadly isn't compartible with MVC and the CSDK isn't > compatible with cygwin / gcc under Windows. > Does anyone has an suggestion for an solution? > > D:\\Software.tmp\\Informix\\utils_ak\\Install_utils2_ak>esql dostats_ng.ec > -Di386 -DNOTIMINGS -D_WINDOWS_ > IBM Informix CSDK Version 3.50, IBM Informix-ESQL Version 3.50.TC6 > Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 16.00.30319.01 > für 80x86 > Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten. > > dostats_ng.c > dostats_ng.ec(164) : warning C4273: 'exit': Inkonsistente DLL-Bindung. > C:\\Programme\\Microsoft Visual Studio > 10.0\\VC\\INCLUDE\\stdlib.h(353): Siehe vorherige Definition von 'exit' > dostats_ng.ec(3800) : warning C4047: '=': Anzahl der Dereferenzierungen > bei 'FILE *' und 'int' unterschiedlich > dostats_ng.ec(4323) : error C2079: 'timep' verwendet undefiniertes > struct 'tm' > esql: error -55904: Error in spawned program. > > Where is the "tm" struct defined? > > TIA > Dirk > > > > > > _______________________________________________ > Informix-list mailing list > Informix-list@iiug.org > http://www.iiug.org/mailman/listinfo/informix-list > >
On 7/23/10 4:34 AM, Art Kagel wrote: > struct tm is a UNIX time structure it is defined in sys/time.h on most > UNIX systems or in a sub-include that's pulled in by that file. I have > never tried to compile dostats_ng.ec <http://dostats_ng.ec> on Windows, > so I can't help much. Sorry Dirk. > > Just an idea, compile and run dostats in a Linux VM on the box or run it > remotely from a Linux box or VM. Actually, struct tm is defined by '#include <time.h>' according to the C standard (both C89 and C99). I'm not even sure what's in <sys/time.h> that isn't available via <time.h> - I know that the Autoconf system makes a big song and dance about whether you can use both headers safely, but I've never needed <sys/time.h>. The exit() function is declared in <stdlib.h> (which needs to be included where exit() is used). > On Fri, Jul 23, 2010 at 5:28 AM, Dirk Niemeier <dirk.niemeier@stueken.de > <mailto:dirk.niemeier@stueken.de>> wrote: > > Hi, > I try to compile the Art S. Kagel programm dostats_ng for Windows > without success. > The Makefile sadly isn't compartible with MVC and the CSDK isn't > compatible with cygwin / gcc under Windows. > Does anyone has an suggestion for an solution? > > D:\\Software.tmp\\Informix\\utils_ak\\Install_utils2_ak>esql > dostats_ng.ec <http://dostats_ng.ec> > -Di386 -DNOTIMINGS -D_WINDOWS_ > IBM Informix CSDK Version 3.50, IBM Informix-ESQL Version 3.50.TC6 > Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 16.00.30319.01 > f'r 80x86 > Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten. > > dostats_ng.c > dostats_ng.ec <http://dostats_ng.ec>(164) : warning C4273: 'exit': > Inkonsistente DLL-Bindung. > C:\\Programme\\Microsoft Visual Studio > 10.0\\VC\\INCLUDE\\stdlib.h(353): Siehe vorherige Definition von 'exit' > dostats_ng.ec <http://dostats_ng.ec>(3800) : warning C4047: '=': > Anzahl der Dereferenzierungen > bei 'FILE *' und 'int' unterschiedlich > dostats_ng.ec <http://dostats_ng.ec>(4323) : error C2079: 'timep' > verwendet undefiniertes > struct 'tm' > esql: error -55904: Error in spawned program. > > Where is the "tm" struct defined? >