<div dir="ltr">Hello again.<br>Update:<br>I was trying 2 options:<br><br><div>1)To use latest GLib with sdp-example, I was trying to compile Libnice itself with latest Glib (2.34.3, got runtime and dev glib, runtime zlib and gettext from hereš<a href="http://www.gtk.org/download/win32.php">http://www.gtk.org/download/win32.php</a>); After trying to achieve this, I got plenty of compilation errorsš<a href="https://gist.github.com/anonymous/71e2a80e57eb4b8ae6c1">https://gist.github.com/anonymous/71e2a80e57eb4b8ae6c1</a><br>
<br>2)Also I was attempting to compile sdp-example with older 2.28 Glib, as this is Glib, with which Libnice supposed to be compiled, due to readme. At the end compiler gives me errors about 2 strings, that i can't fix;<br>
<br></div><div>Errors:<br><div>1>c:\users\max\documents\visual studio 2010\projects\nice\nice\nice.cpp(65): error C2079: 'gather_mutex' uses undefined struct '_GMutex'</div><div>1>c:\users\max\documents\visual studio 2010\projects\nice\nice\nice.cpp(65): error C2079: 'negotiate_mutex' uses undefined struct '_GMutex'</div>
<div>1>c:\users\max\documents\visual studio 2010\projects\nice\nice\nice.cpp(66): error C2079: 'gather_cond' uses undefined struct '_GCond'</div><div>1>c:\users\max\documents\visual studio 2010\projects\nice\nice\nice.cpp(66): error C2079: 'negotiate_cond' uses undefined struct '_GCond'</div>
</div><div><br></div><div>in the strings:<br><div>static GMutex gather_mutex, negotiate_mutex;</div><div>static GCond gather_cond, negotiate_cond;</div></div><div><br></div><div>Yet, "go to definition (f12)" in VC++ 2010 and leads me to definition of GMutex or GCond in gthread.h<br>
<br>My inclusion are<br><div>#include <stdlib.h></div><div>#include <stdio.h></div><div>#include <string.h></div><div>#include <ctype.h><br><br><div>#include "agent.h"</div><div>#include "glib.h"<br>
#include "glib/gthread.h"<br>#include "WinBase.h"<br><br>How can I fix any of the ways, mentioned above?</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/16 íÁËÓÉÍ åÒ£ÍÅÎËÏ <span dir="ltr"><<a href="mailto:maksyarik@gmail.com" target="_blank">maksyarik@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone.<br>As header says - I encounter some problems, while trying to compile sdp-example from examples folder under win32 via Visual Studio 2010 Express.<br>
<div>As i understand, despite the fact, that nicelib is crossplatform stuff, this example was made for compilation under UNIX, And now, as I'm working with win32, and, it seems, struggling from lack of knowledge, I hope you can help me with some problems and questions in small list below:<br>

<br>1)error C2079: 'gather_mutex' ( and 'negotiate_mutex') uses undefined struct '_GMutex' (same with gather_cond and negotiate_cond). Fixed by making Gcond and Gmutex 'extern' instead of 'static', is it suitable fix?<br>

<br>2)error C3861: 'usleep': identifier not found. As i get it this one declared in Unistd.h, that refers to UNIX system, let's assume that I can replace it with some appropriate win32 function (I can, right?), or will add needed UNIX headers.<br>

<br>3)error C3861: 'g_thread_new': identifier not found. This one is the most unclear one for me. Due to my understanding, g_thread_new must be declared somewhere in glib, but it seems that i just dont know what i need to include, or maybe there is no g_thread_new in version of glib, that i get from the link in REAME.win32 (2.28.8). <br>

My inclusions are:<br><div>#include <stdlib.h></div><div>#include <stdio.h></div><div>#include <string.h></div><div>#include <ctype.h></div><div>#include <io.h></div><div><br></div><div>#include "agent.h"</div>

<div>#include "gio/gio.h"</div><div>#include "glib.h"</div><div>#include "gio-win32-2.0/gio/gwin32inputstream.h"</div><div>#include "gio-win32-2.0/gio/gwin32outputstream.h"<br><br>
Thanks for the help in advance.<br>
Max.</div></div></div>
</blockquote></div><br></div>