Hey,<br><br>Its my mistake... I am really sorry.. I had forgot to include winsock32.lib.. :) once that was included, its working fine.. <br><br>Thanks a lot<br><br>Cheers<br>Rakesh Patil<br><br><div class="gmail_quote">On Tue, Dec 20, 2011 at 2:03 PM, Laurent Van Miegroet <span dir="ltr"><<a href="mailto:l.vanmiegroet@ulg.ac.be">l.vanmiegroet@ulg.ac.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Rakesh, <br>
<br>
I compiled this morning the version gmsh-2.5.1-svn-20111220-source
with no problem. I compile in 32 bit MSVC 2008 with blas (Intel)
/Open Cascade.<br>
Do you use cl compiler or Intel Compiler within Visual studio ?<br>
Can you try to compile in 32 bit ? WSAStartup seems to be defined
only in WIN32.<br>
<br>
Laurent.<br>
<br>
Le 20/12/2011 5:13, rakesh patil a écrit :
<div><div></div><div class="h5"><blockquote type="cite">Hi Laurent,<br>
<br>
This is what I did. As mentioned by you, I configured gmsh in
CMAKE with visual studio 2008 (win 64) compiler. I disabled
BLOSSOM and FLTK and gave the appropriate paths for BLAS and
LAPACK libraries (I am using BLAS and LAPACK libraries which comes
along with Intel Compiler). I was able to build static and dynamic
libraries both. But when I linked them with my application, I got
following run time error:<br>
<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol send<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol WSAStartup<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol WSACleanup<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol closesocket<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol connect<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol htons<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol gethostbyname<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol socket<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol recv<br>
Gmsh.lib(GmshMessage.obj): error LNK2001: unresolved external
symbol select<br>
Gmsh.lib(OS.obj): error LNK2001: unresolved external symbol
gethostname<br>
<br>
Well, I observed that these functions are available in the code,
but still wondering why my application is not able to link them.
Is there any pre-processor to be defined before compiling? Or is
it because I'm trying to build gmsh for 64-bit windows machine?<br>
<br>
Thanks<br>
<br>
<div class="gmail_quote">On Mon, Dec 19, 2011 at 10:26 PM, Laurent
Van Miegroet <span dir="ltr"><<a href="mailto:l.vanmiegroet@ulg.ac.be" target="_blank">l.vanmiegroet@ulg.ac.be</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi Rakesh, <br>
<br>
You can compile gmsh without any external lib. But
Blas/Lapack is mandatory for 3D meshing if i'm not wrong and
opencascade for CAD geo files.<br>
Laurent<br>
<br>
Le 19/12/2011 12:26, rakesh patil a écrit :
<div>
<div>
<blockquote type="cite">Hey Laurent,<br>
<br>
Thanks for your reply. Just before compiling the
nightly build, I wanted to know the minimum supporting
libraries required to compile gmsh as a .lib file.
(such as blas, lapack etc). What other libraries I
need to have before compiling it as a static library?<br>
<br>
Thanks in advance<br>
<br>
Regards<br>
Rakesh Patil<br>
<br>
<div class="gmail_quote">On Sat, Dec 17, 2011 at 6:18
PM, Laurent Van Miegroet <span dir="ltr"><<a href="mailto:l.vanmiegroet@ulg.ac.be" target="_blank">l.vanmiegroet@ulg.ac.be</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Rakesh, <br>
<br>
I corrected the source for msvc. It compile if
you uncheck blossom and fltk. There is also a
project shared for the dll version.<br>
Download nightly source tomorrow.<br>
<br>
Laurent<br>
Le 17/12/2011 11:03, Laurent Van Miegroet a
écrit :
<div>
<div>
<blockquote type="cite"> Hello Rakesh,<br>
<br>
Gmsh can be built as a .lib for sure under
MSVC 2008. Generate your project with
cmake, uncheck FLTK in cmake and build the
lib project to obtain a library. (.lib)<br>
The ENABLE_MSVC_STATIC_RUNTIME is used to
switch between /MD and /MT.<br>
To obtain a dll file you may change the
output configuration type of the gmsh
project to dll instead of exe (not the lib
project).<br>
<br>
Laurent<br>
<br>
PS: up to date svn version does not built
on msvc 2008, some fixes are needed.
Download an older version.<br>
<br>
Le 17/12/2011 6:37, rakesh patil a écrit :
<blockquote type="cite">Hello,<br>
<br>
Can gmsh be compiled as static library
(.lib) and dynamic library(.dll) file?
If so what is the procedure? I want to
test it with both 32bit and 64bit mode
on windows 7 64bit OS, with visual
studio 2008 and CMAKE. <br>
<br>
Thanks in advance<br>
<br>
Regards<br>
Rakesh Patil<br>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
gmsh mailing list
<a href="mailto:gmsh@geuz.org" target="_blank">gmsh@geuz.org</a>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a>
</pre>
</blockquote>
<br>
<br>
<div>-- <br>
<small>Laurent Van Miegroet<br>
Research Engineer<br>
Department of Aerospace &
Mechanical Engineering<br>
University of Liege - Belgium<br>
Phone : +32.4.366.92.70<br>
Fax: +32.4.366.91.59<br>
</small></div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
gmsh mailing list
<a href="mailto:gmsh@geuz.org" target="_blank">gmsh@geuz.org</a>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a>
</pre>
</blockquote>
<br>
<br>
<div>-- <br>
<small>Laurent Van Miegroet<br>
Research Engineer<br>
Department of Aerospace & Mechanical
Engineering<br>
University of Liege - Belgium<br>
Phone : +32.4.366.92.70<br>
Fax: +32.4.366.91.59<br>
</small></div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@geuz.org" target="_blank">gmsh@geuz.org</a><br>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<div>-- <br>
<small>Laurent Van Miegroet<br>
Research Engineer<br>
Department of Aerospace & Mechanical Engineering<br>
University of Liege - Belgium<br>
Phone : +32.4.366.92.70<br>
Fax: +32.4.366.91.59<br>
</small></div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<div>-- <br>
<small>Laurent Van Miegroet<br>
Research Engineer<br>
Department of Aerospace & Mechanical Engineering<br>
University of Liege - Belgium<br>
Phone : +32.4.366.92.70<br>
Fax: +32.4.366.91.59<br>
</small></div>
</div></div></div>
</blockquote></div><br>