getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Linking Getfem++ library to a Microsoft Visual Studio


From: Andres Peratta
Subject: Re: [Getfem-users] Linking Getfem++ library to a Microsoft Visual Studio C++ project
Date: Wed, 17 Mar 2010 16:12:54 +0000
User-agent: KMail/1.9.6 (enterprise 20070904.708012)

Hey Jaime
Thanks for your reply. I've also been following the steps from: 
http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs
but without success with the Getfem library. 

Although the method there does work perfectly fine if the whole process starts 
from compiling from source as follows:

gcc -shared -o testdll.dll 
testdll.c -Wl,--output-def,testdll.def,--out-implib,libtestdll.a

where we are able to build with -share and -Wl options directly from source.

I will report back if I manage to get it working.

Regards
Andres



On Wednesday 17 March 2010 14:39:53 you wrote:
> Hello,
>
> I am trying to achive the same objective as you, however i have not been
> able to reproduce it.
>
> Since getfem is licensed as LGPL, I'm trying to obtain a correct DLL  to
> link it from my c++ program (visual studio). I've followed the steps from
> the following link, but did not manage to link:
>
> http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs
>
> <http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs>If you manage to link your
> program with getfem, please let me/us know.
>
> Thank you, hope my info helps a bit.
>
> Jaime
>
> On Wed, Mar 17, 2010 at 15:31, Andres Peratta <address@hidden> wrote:
> > Is there a way to link the Getfem library to a MVS C++ project that uses
> > the
> > library? If so, could anyone put me in the right direction on how to do
> > it?
> >
> > I build the library with the following sequence:
> >
> > ./configure --enable-shared
> > make
> > make install
> >
> > This produces "libgetfem.a" and "libgetfem.la" among other things.
> > Linking to them statically from a c++ program works absolutely fine,
> > provided
> > that the code that uses the library is also compiled with gcc (in my case
> > from mingw).
> >
> > Despite the "--enable-shared" option passed to "configure", the
> > outcome "libgetfem.a" still seems to look like a static library, which as
> > far
> > as I can tell can only be used by code compiled with the same version of
> > gcc
> > (pls correct me if I'm wrong).
> >
> > Do I need to produce a DLL? If so, how?
> >
> > Note: I am using the release version of getfem++3.1
> >
> > Many thanks in advance
> > Andres
> >
> > _______________________________________________
> > Getfem-users mailing list
> > address@hidden
> > https://mail.gna.org/listinfo/getfem-users



-------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]