[so] [TEMA 2] [WIN] Problema compilare
Diana Vasile
diavasile at yahoo.com
Sat Apr 7 22:47:09 EEST 2012
Salut!
Nu imi iese compilarea in Windows cu dll-ul ala. In codul serverului, am inclus crypto.h si
i-am dat __declspec(dllimport) DWORD decrypt_base64(void *in, DWORD len, void *out);
etc, dar la compilare imi zice:
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'
si tot asa pt toate functiile din crypto.h.
In Makefile am asa ceva:
server.exe: server.obj $(WIN_IPC_OBJ) crypto.lib
link $(LDFLAGS) /OUT:$@ $**
Ce am omis?
Nu am modificat nimic la crypto.h, iar flagurile de compilare sunt cele din laboratorul 5:
CFLAGS = /nologo /I. /W3 /D_CRT_SECURE_NO_DEPRECATE /DWIN32 /EHsc
LDFLAGS = /nologo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20120407/e69d1482/attachment.html>
More information about the so
mailing list