AutoHotkey Community

It is currently May 25th, 2012, 11:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 91 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject:
PostPosted: May 16th, 2007, 12:57 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
foom wrote:
by uncommenting #ifdef _MSC_VER from stdafx.h i get the error count down to 13 (missing definitions/declarations).
Thanks for posting your findings. Hopefully someone familiar with GCC will use your info to provide the missing functions and resolve the remaining errors.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 31st, 2007, 7:38 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
@Chris - Thanks for removing the need for some of the modifications to the source files to be able to compile ok in VC 2005 Express :) .

I have added a zip file for download in the first post with the modified vcproj and sln files. Replacing these files after downloading the source should allow AutoHotkey to compile ok. If anyone gets a chance to give it a try then please let me know if it works ok.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2007, 1:11 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
Added modified project files for version 1.0.47.01.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2007, 8:29 pm 
Offline

Joined: October 7th, 2005, 9:46 pm
Posts: 13
corrupt-

Thank you for this information and providing the updated files. I successfully compiled version 1.047. I had one error, presumably because I had other older/beta versions of Visual C++ on my system. Here is the error and the solution for any who may need this:
fatal error C1902: Program database manager mismatch; please check your installation
The problem was corrected when I deleted mspdb80.dll from the Program Files\Microsoft Visual Studio 8\VC\bin directory.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 13th, 2007, 5:26 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
You're welcome. Thanks for the feedback :) .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 25th, 2007, 4:58 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
After referring to this thread for the third or fourth time, I figured it was time to say thanks...

Thanks for this very useful reference, corrupt! :)

Also, the step:
Quote:
change Link Time Code Generation to Use Link Time Code Generation (/ltcg)
doesn't seem to be necessary. I get this message:
Quote:
LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance
as well as a warning:
Quote:
Warning 32 warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification

Regarding UPX - It might be worth mentioning that the post-build event for compressing AutoHotkey.exe is only in the Release configuration. This caused me a bit of confusion... :roll:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2007, 12:21 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
You're welcome. Thanks for the tips. I'll have a closer look and update the instructions in the first post soon with instructions for the latest version. The instructions posted are for a previous version and could likely use a bit of tweaking.
lexikos wrote:
Regarding UPX - It might be worth mentioning that the post-build event for compressing AutoHotkey.exe is only in the Release configuration. This caused me a bit of confusion... :roll:
I'd be glad to add a comment to the first post if you think it would be helpful to someone but I'm not sure I understand what you found confusing regarding UPX. Not requiring UPX in some cases didn't seem worth mentioning since most people are likely to build the release version and would need to either provide UPX (this seems like it would be the most popular choice) or remove the event. Could you please try to clarify? :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2007, 12:44 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
I built the project, expecting to see the post-build event in the output window. When it didn't appear, I looked in the project config. I didn't find the build event, so thought "doh, guess I must have to add the event myself..." :oops: It took me a few minutes to think to check the Release configuration. I barely ever build "Release"; so far I've only been using the debugger to get a better understanding of how AutoHotkey works internally. Nothing major.
Quote:
Not requiring UPX in some cases didn't seem worth mentioning
It's not the requiring upx or not, but whether "Performing Post-Build Event" will appear when you compile Debug. :wink:


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 16th, 2007, 10:13 am 
corrupt wrote:
Install and configure Microsoft Visual C++ 2005 Express Edition

Download and install - Visual C++ 2005 Express Edition (install the IDE if asked)
http://msdn.microsoft.com/vstudio/express/downloads/

Download and install - Microsoft ® Windows Server® 2003 R2 Platform SDK Web Install
http://www.microsoft.com/downloads/deta ... laylang=en

Download and install - Microsoft® Visual Studio® 2005 Express Editions Service Pack 1
http://www.microsoft.com/downloads/deta ... laylang=en

Important: go to http://msdn.microsoft.com/vstudio/expre ... usingpsdk/ and follow the directions in Step 4 to update the corewin_express.vsprops file.


Dear corrupt,

Thank you very much for the brilliant guide. I followed it, and was able to compile on the first try! May I add two alternative URLs:

From this one you can download the installer for the Microsoft ® Windows Server® 2003 R2 Platform SDK (no web installation necessary): http://asia.cnet.com/downloads/pc/swinf ... 02s,00.htm

As of today, the instructions on how to update corewin_express.vsprops are not available on the link you provided. But I found them here: http://forums.microsoft.com/MSDN/ShowPo ... 7&SiteID=1

Cheers,
Andy


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 16th, 2007, 6:22 pm 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
It is better to sit here and look stupid, rather than to open my my mouth and remove all doubt....

So I deleted my stupidity! :oops: :lol: 8)


Last edited by DeWild1 on February 21st, 2008, 8:56 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 16th, 2007, 6:32 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
this topic is about how to compile the Autohotkey.exe in C++, not how to compile AHK code in C++.

you can disable UPX for your scripts - search the forum.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject: thanks!!
PostPosted: October 17th, 2007, 2:49 am 
thanks alot for this!
just need to learn c++ more :lol: then i'll have something to mess around with.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 17th, 2007, 10:07 am 
I always thought it would be great if there was a developer's section in the forum. This way developers could focus more on their issues, C/C++, and development of AutoHotkey VERSUS just AutoHotkey the scripting language and user issues.

Anyway, good stuff.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2007, 7:13 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
Anonymous wrote:
I always thought it would be great if there was a developer's section in the forum. This way developers could focus more on their issues, C/C++, and development of AutoHotkey VERSUS just AutoHotkey the scripting language and user issues.

Anyway, good stuff.
If you're interested in the development of AutoHotkey then it would be handy to post with a registered name... ;)


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 24th, 2007, 11:47 pm 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
PhiLho wrote:
Aargh, I just see this after trying to compile SciTE with VS 2005


Is SciTE AHK based?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 91 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 7  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: bbwht, Scratch, toddintr and 17 guests


You can post new topics in this forum
You can 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:
Powered by phpBB® Forum Software © phpBB Group