<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; "><div class="gmail_quote">2012/4/7 Diana Vasile <span dir="ltr"><<a href="mailto:diavasile-/E1597aS9LQAvxtiuMwx3w@public.gmane.org" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none; ">diavasile-/E1597aS9LQAvxtiuMwx3w@public.gmane.org</a>></span><br><blockquote class="gmail_quote"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top">Salut!<br><br>Nu imi iese compilarea in Windows cu dll-ul ala. In codul serverului, am inclus crypto.h si <br>i-am dat __declspec(dllimport) DWORD decrypt_base64(void *in, DWORD len, void *out);<br>etc, dar la compilare imi zice:<br>c:\cygwin\home\student\crypto.h(10) : error C2061: syntax error : identifier 'crypt_base64' c:\cygwin\home\student\crypto.h(10) : error C2059: syntax
error : ';' c:\cygwin\home\student\crypto.h(10) : error C2059: syntax error : 'type' c:\cygwin\home\student\crypto.h(11) : error C2061: syntax error : identifier 'decrypt_base64' c:\cygwin\home\student\crypto.h(11) : error C2059: syntax error : ';' c:\cygwin\home\student\crypto.h(11) : error C2059: syntax error : 'type'<br><br>si tot asa pt toate functiile din crypto.h.<br><br>In Makefile am asa ceva: <br><br>server.exe: server.obj $(WIN_IPC_OBJ) crypto.lib<br>link $(LDFLAGS) /OUT:$ <at> $** <br>Ce am omis?<br></td></tr></tbody></table></blockquote><div>Trebuie sa incluzi windows.h inainte sa incluzi crypto.h ca sa stie de DWORD.</div><div>Si eu uitasem si nu pricepeam.</div><blockquote class="gmail_quote"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top"><br>Nu am modificat nimic la crypto.h, iar flagurile de compilare sunt cele din laboratorul 5:<br>CFLAGS = /nologo /I. /W3 /D_CRT_SECURE_NO_DEPRECATE /DWIN32
/EHsc <br>LDFLAGS = /nologo<br><br></td></tr></tbody></table></blockquote></div>-- <br>Alexandru - George Burghelea</span><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; ">Intr-adevar, am schimbat ordinea include-urilor si acuma merge :)</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; ">Multumesc </span></div></td></tr></table>