Thank you Allin. I will try with Microsoft C compiler first to see if I have any luck
Sad to hear "Nobody in the gretl team has tried that". I know you guys create
great useful software, but meantime, please think more for MSVS user. I assume there are
lots of developer like me, who have used VS IDE for years but don't dare to try gcc or
alike since those compilers are not very user friendly(I am so afraid of writting makefile
mannually, on the contrary, in VS, it's just a matter of mouse click...).
Thank you for the advice so much, Allin.
Lake
________________________________
From: Allin Cottrell <cottrell(a)wfu.edu>
To: da wang <dawang2002(a)yahoo.com>
Cc: Gretl development <gretl-devel(a)lists.wfu.edu>; "r.lucchetti(a)univpm.it"
<r.lucchetti(a)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