Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 13:47

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Cant compile Steampwd.c
PostPosted: 16 Aug 2008 16:49 

Joined: 16 Aug 2008 16:43
Posts: 3
Hey
Im from Germany and i have a question.
I cant compile your newest version of steampwd.
Tried around to compile but it doesn't work.
I get following errors.

Code:
||=== steampwd, Debug ===|
main.cpp|71|warning C4996: 'setbuf': This function or variable may be unsafe. Consider using setvbuf instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.|
main.cpp|106|error C2440: '=': 'char *' kann nicht in 'u8 *' konvertiert werden|
main.cpp|110|error C2664: 'sprintf': Konvertierung des Parameters 1 von 'u8 [1024]' in 'char *' nicht m???glich|
main.cpp|231|error C2117: 'hextable': ??berlauf der Arraygrenzen|
main.cpp|271|error C2664: 'strlen': Konvertierung des Parameters 1 von 'u8 *' in 'const char *' nicht m???glich|
main.cpp|315|error C2664: 'strlen': Konvertierung des Parameters 1 von 'u8 *' in 'const char *' nicht m???glich|
main.cpp|317|error C2440: '=': 'void *' kann nicht in 'u8 *' konvertiert werden|
main.cpp|319|error C2664: 'sprintf': Konvertierung des Parameters 1 von 'u8 *' in 'char *' nicht m???glich|
main.cpp|322|error C2664: 'strcpy': Konvertierung des Parameters 1 von 'u8 *' in 'char *' nicht m???glich|
main.cpp|327|error C2664: 'find_data': Konvertierung des Parameters 3 von 'const char [9]' in 'u8 *' nicht m???glich|
main.cpp|364|error C2664: 'fopen': Konvertierung des Parameters 1 von 'u8 *' in 'const char *' nicht m???glich|
main.cpp|367|error C2440: '=': 'void *' kann nicht in 'u8 *' konvertiert werden|
main.cpp|381|error C2664: 'strlen': Konvertierung des Parameters 1 von 'u8 *' in 'const char *' nicht m???glich|
||=== Build finished: 12 errors, 1 warnings ===|


I hope you can check my problem.
I cant convert uint8_t (u8) into other datatypes.
Does anyone know how to fix this conversion problem?
I use the IDE "Code::Blocks" and "Dev c++" and "Visual C++ 2008".
Everywhere i get different errors or i stuck at the conversion.

I hope you can read my text..
Bye


Top
 Profile  
 
 
 Post subject:
PostPosted: 16 Aug 2008 18:23 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
try substituiting "typedef uint8_t u8;" with "typedef unsigned char u8;" or "typedef char u8;"
anyway I think you have some options on the compiler which consider sign warnings as error


Top
 Profile  
 
 Post subject:
PostPosted: 16 Aug 2008 19:33 

Joined: 16 Aug 2008 16:43
Posts: 3
now the linker tells me this:

Code:
steampwd.obj : error LNK2019: Verweis auf nicht aufgel??stes externes Symbol "_sh
a2" in Funktion "_AESPHM_GenerateIvFromSeed".
steampwd.obj : error LNK2019: Verweis auf nicht aufgel??stes externes Symbol "_ae
s_crypt_cfb" in Funktion "_AESPHM_Decrypt".
steampwd.obj : error LNK2019: Verweis auf nicht aufgel??stes externes Symbol "_ae
s_setkey_enc" in Funktion "_AESPHM_Decrypt".
steampwd.obj : error LNK2019: Verweis auf nicht aufgel??stes externes Symbol "_sh
a1_hmac" in Funktion "_AESPHM_Decrypt".
steampwd.exe : fatal error LNK1120: 4 nicht aufgel??ste externe Verweise.


Do i have to add a library for the linker?
Which one?
Thx!

Ive got an other question.
Which Compiler should i use / did you use?


Top
 Profile  
 
 Post subject:
PostPosted: 16 Aug 2008 20:36 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
if your compiler had problems with steampwd.c I don't want to imagine how other problems it could give you with the other .c files there 8-)

you must compile as objects all the other .c files in the src folder and then add them to the final compilation of steampwd.c

I use Mingw/Gcc


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: