<table cellspacing="0" cellpadding="0" border="0" ><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><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></table>