Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: thek on July 31, 2008, 01:30:01 pm

Title: How to setup "detours" with CodeBlocks (makefile)
Post by: thek on July 31, 2008, 01:30:01 pm
Ok, I give up. I just don’t get it  :shock:

I’ve downloaded Microsoft Detours (http://research.microsoft.com/sn/detours/) and now I wish to use it with CB.

I’m having a very hard time to find out how to use makefile I CB.

Can someone please help me out?

I’ve search the forum – but with no help.

Detours FAQ says : “You need to build a version of detours.lib for your C/C++ compiler in the detours/src directory by typing nmake either in the detours directory or in the detours/src directory.”

All right, dear Gates….But how? First of all “nmake” program do not exist, that goes for “Make” as well (even though MinGW says that is located under /bin , it’s not)

Then we got the properties option under the project, with the “This is a custom Makefile”. Yes that’s right, but then what?

CB’ own FAQ says: “In "Compiler Settings", under the tab "Other", there's a setting called "Build Method". Choose "Work with makefiles".” But that is greyed out and can’t be changed."

So to sum up my newbie post:  :lol:

1)   Where can I find a detailed step by step information about this?
2)   Can anybody help me out?


Thanks in advance.



Title: Re: How to setup "detours" with CodeBlocks (makefile)
Post by: thek on August 01, 2008, 11:58:36 am
Bump. Anybody?

Thanks.
Title: Re: How to setup "detours" with CodeBlocks (makefile)
Post by: TDragon on August 01, 2008, 06:32:59 pm
Detours is only designed to be built with Microsoft's Compiler, VC7 through VC2005. You'll need to use one of those. As stated, you must build Detours from the tools command shell, but you can use it in C::B afterwards.
Title: Re: How to setup "detours" with CodeBlocks (makefile)
Post by: thek on August 03, 2008, 02:55:52 pm
Excellent.

Thanks, TDragon