[so] [TEMA 2] [WIN] Problema compilare
Alexandru Burghelea
alexandru.burghelea at cti.pub.ro
Sat Apr 7 23:38:59 EEST 2012
2012/4/7 Diana Vasile <diavasile at yahoo.com>
> 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?
>
Trebuie sa incluzi windows.h inainte sa incluzi crypto.h ca sa stie de
DWORD.
Si eu uitasem si nu pricepeam.
>
> 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
>
>
>
> _______________________________________________
> http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii
>
--
Alexandru - George Burghelea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20120407/78882e5d/attachment.htm>
More information about the so
mailing list