From: Allin Cottrell <cottrell@wfu.edu>
To: da wang <dawang2002@yahoo.com>
Cc: Gretl development <gretl-devel@lists.wfu.edu>; "r.lucchetti@univpm.it" <r.lucchetti@univpm.it>
Sent: Monday, March 12, 2012 2:27 PM
Subject: Re: [Gretl-devel] where is libgretl.h?
On Mon, 12 Mar 2012, da wang wrote:
> I find libgretl.h and libgretl.dll in gretl source, so my goal is to compile this source code to generate libgretl.lib to be linked by my C++ app in MSVS2010. Thanks a lot for your links. Looks like I need to first compile gretl source with MinGW, then use Microsoft LIB tool to convert the generated .a file into .lib file so it can be used in MSVS [...]
That's the route if you're building gretl with mingw, but it ought to be possible to build with the Microsoft C compiler (in which case you'd presumably get a .lib import library by default, along with the libgretl DLL).
Nobody in the gretl team has tried that, but I suppose it's just a matter of creating the right nmake file or "project" file; the mingw-oriented Makefile should provide a basis.
Allin