Author Topic: How to setup "detours" with CodeBlocks (makefile)  (Read 7424 times)

Offline thek

  • Single posting newcomer
  • *
  • Posts: 3
How to setup "detours" with CodeBlocks (makefile)
« 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.




Offline thek

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to setup "detours" with CodeBlocks (makefile)
« Reply #1 on: August 01, 2008, 11:58:36 am »
Bump. Anybody?

Thanks.

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: How to setup "detours" with CodeBlocks (makefile)
« Reply #2 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.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline thek

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to setup "detours" with CodeBlocks (makefile)
« Reply #3 on: August 03, 2008, 02:55:52 pm »
Excellent.

Thanks, TDragon