Luigi Auriemma

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

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Trouble Compiling steampwd.c
PostPosted: 12 May 2009 19:12 

Joined: 12 May 2009 19:06
Posts: 4
I'm attempting to compile your steampwd.c using MinGW.

I'm running the following command in the command prompt: gcc steampwd.c
and I'm getting the following errors:

Code:
Undefined reference to '_imp__GetOpenFileNameA@4'
Undefined reference to 'SHA256'
Undefined reference to 'AES_ecb_encrypt'
Undefined reference to 'SHA256'
Undefined reference to 'EVP_sha1'
Undefined reference to 'HMAC'
Undefined reference to 'AES_set_encrypt_key'


I understand I need to link libraries but I'm not sure which ones to link or how to accomplish it correctly.


Top
 Profile  
 
 
 Post subject: Re: Trouble Compiling steampwd.c
PostPosted: 12 May 2009 19:59 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the library you need is openssl (-lcrypto).
the openssl website suggests http://www.slproweb.com/products/Win32OpenSSL.html while I'm more confortable with the gnuwin32 package (the only downside is that it's not much updated): http://gnuwin32.sourceforge.net/packages/openssl.htm ("Developer files").

so the full compiling command is:
Code:
gcc -o steampwd.exe steampwd.c -lcomdlg32 -lcrypto -lgdi32


Top
 Profile  
 
 Post subject: Re: Trouble Compiling steampwd.c
PostPosted: 12 May 2009 20:43 

Joined: 12 May 2009 19:06
Posts: 4
It worked, I fucking love you <3. BTW I think all your work is incredible.


Top
 Profile  
 
 Post subject: Re: Trouble Compiling steampwd.c
PostPosted: 12 May 2009 23:43 

Joined: 12 May 2009 19:06
Posts: 4
*EDIT* Nevermind, sorry for the bother I figured it out, thanks again *EDIT*

Original question:
Also another question, how do I compile it with the .res file?

*EDIT* Nevermind, sorry for the bother I figured it out, thanks again *EDIT*


Top
 Profile  
 
 Post subject: Re: Trouble Compiling steampwd.c
PostPosted: 13 May 2009 01:29 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
anyway it's (was) a good question:
Code:
windres.exe steampwd.rc steampwd.o
so then it's enough to add steampwd.o after the "-lgdi32" of the main compiling command to add that resource:
Code:
gcc -o steampwd.exe steampwd.c -lcomdlg32 -lcrypto -lgdi32 steampwd.o


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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: