<br><br><div class="gmail_quote">2012/4/7 Diana Vasile <span dir="ltr"><<a href="mailto:diavasile@yahoo.com">diavasile@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">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><pre>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:$@ $** <br></pre>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" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><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><br></td></tr></tbody></table><br>_______________________________________________<br>
<a href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii" target="_blank">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Alexandru - George Burghelea<br>
<br>