# Dev-C++ (or how to impress your mom and friends in 14 steps)

**URL:** <https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48>\
**Category:** Windows\
**Created:** [September 4, 2004, 2:09pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48 "2004-09-04T14:09:24Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![SigmaDeltaRob](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@SigmaDeltaRob](https://forum.juce.com/u/SigmaDeltaRob)\
**Post date:** [September 4, 2004, 2:09pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/1 "2004-09-04T14:09:24Z")

</div>

Step 1: Install Dev-C++ 4.9.9.0

Step 2: Update! Goto tools–\>check for updates/packages. Check for updates. Check Directx9 devpack, download selected and install.

Step 3: “install” Juce, preferrably to c:\juce or d:\juce (dont double your paths when extracting!)

Step 4: open “\juce\build\win32\devcpp\juce.dev”

Step 5: in juce\_win32\_Threads.cpp, change

```auto

include "crtdbg.h" 

```

to

```auto

       include "crtdbg.h" 

	
```

step 6: same file as above. in Process:terminate() change…

```auto

    _CrtDumpMemoryLeaks(); 	

```

to

```auto

    #ifdef PLATFORM_WIN32_MSVC 
    _CrtDumpMemoryLeaks(); 
    #endif 
```

(I suggest Jules add this, or similiar, to the lib btw for those of us who dont have access to crtcbg.h or similiar without a massive searching headache)

step 7: Compile! in 1.4 this will make libjuce.a, in 1.3 it makes juce.a. You need the file to be called libjuce.a

step 8: New project, win32 GUI, c++

step 9: Remove Main.cpp (right click, remove file).

step 10: Add file “\juce\projects\example project for Win32\main.cpp”

step 11: Alt-P (project options) -\> Directories tab, and add “\juce\bin” to your library directories.

Step 12: Still inside project options (alt-p), add this to linker parameters. “-ljuce -lmsvfw32 -lwinmm -lrpcrt4” without the quotes.

step 13: Compile and link! following these steps from no install to build on a computer I havent used Juce on worked great.

step 14: Run executable to say hi to the world.

If there’s any errors you have, just let me know and Ill see if I left out a step or something.

v1.3.1 revisions: Another obvious one, run executable. Just in case someone expected compile and run automatically 😉

v1.3 revisions: Forgot to suggest removing main.cpp, one of those “No one will forget to do that will they?” things ya know?

v1.2 revisions: Added update procedure for directX, needed for dsound.h and the various trinkets jules uses from it.

v1.1 revisions: Added steps to remove crtdbg.h for non MSVC compilers.

---

<div class="post-metadata">

**Author:** ![jtxx000](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jtxx000](https://forum.juce.com/u/jtxx000)\
**Post date:** [September 7, 2004, 9:15pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/2 "2004-09-07T21:15:46Z")

</div>

Well as I haven’t gotten a reply from KvR, I’ll ask here: Dev-C++ can’t seem to find wctype.h, is this a path problem or something?

---

<div class="post-metadata">

**Author:** ![ModuLR](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@ModuLR](https://forum.juce.com/u/ModuLR)\
**Post date:** [September 7, 2004, 9:18pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/3 "2004-09-07T21:18:56Z")

</div>

Honestly, you might want to consider downloading the MS Visual C++ Express Beta (which is free)… then follow the directions in the Express thread.

It compiles fine, and it’s a much better IDE (with much better compiled filesizes as well).

[http://lab.msdn.microsoft.com/express/visualc/default.aspx](http://lab.msdn.microsoft.com/express/visualc/default.aspx)

---

<div class="post-metadata">

**Author:** ![jtxx000](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jtxx000](https://forum.juce.com/u/jtxx000)\
**Post date:** [September 7, 2004, 9:31pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/4 "2004-09-07T21:31:07Z")

</div>

Would I be better with express or Visual C++ 6?

---

<div class="post-metadata">

**Author:** ![SigmaDeltaRob](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@SigmaDeltaRob](https://forum.juce.com/u/SigmaDeltaRob)\
**Post date:** [September 7, 2004, 9:42pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/5 "2004-09-07T21:42:30Z")

</div>

> [@jtxx000](#):
>
> Would I be better with express or Visual C++ 6?

express is working great for all of us so far…

I personally feel more comfortable in vc6, but that’s where my little bit of windows experience comes into play.

---

<div class="post-metadata">

**Author:** ![jtxx000](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jtxx000](https://forum.juce.com/u/jtxx000)\
**Post date:** [September 7, 2004, 9:55pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/6 "2004-09-07T21:55:57Z")

</div>

Is express going to stay free once it gets out of beta?

---

<div class="post-metadata">

**Author:** ![ModuLR](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@ModuLR](https://forum.juce.com/u/ModuLR)\
**Post date:** [September 7, 2004, 10:38pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/7 "2004-09-07T22:38:10Z")

</div>

I don’t think anyone really knows… however Karbon and Robert have mentioned that it might be in response to all the free compilers out there. Consider it competition… so maybe we’ll be lucky and it’ll stay free.

I can tell you, it is definately better than Dev-C++, and I’ll keep using it until something happens otherwise. It’s that much better.

---

<div class="post-metadata">

**Author:** ![jtxx000](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jtxx000](https://forum.juce.com/u/jtxx000)\
**Post date:** [September 7, 2004, 10:58pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/8 "2004-09-07T22:58:13Z")

</div>

Ok, I’ll get it then. 😃

---

<div class="post-metadata">

**Author:** ![sonicwarrior](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sonicwarrior](https://forum.juce.com/u/sonicwarrior)\
**Post date:** [December 10, 2005, 3:23pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/9 "2005-12-10T15:23:56Z")

</div>

> [@SigmaDeltaRob](#):
>
> step 10: Add file “\juce\projects\example project for Win32\main.cpp”

It seems that the Make which Dev-C++ uses (GNU Make?) does not like blank spaces so it’s best to rename/copy this folder to  
“example-project-for-Win32” or so or copy the main.cpp to an own project folder without blank spaces.

With the blank spaces I got the following message:

```auto
Line 26: [Build Error] *** target pattern contains no `%´. Stop
```

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 10, 2005, 4:02pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/10 "2005-12-10T16:02:28Z")

</div>

blimey, that’s a bit pathetic, isn’t it? I’ll change the name.

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@OvermindDL1](https://forum.juce.com/u/OvermindDL1)\
**Post date:** [December 10, 2005, 8:37pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/11 "2005-12-10T20:37:51Z")

</div>

Uh, if the filepath is in quotations (""), then it should be taken literal, spaces and all, at least with the versions I use.

---

<div class="post-metadata">

**Author:** ![sonicwarrior](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sonicwarrior](https://forum.juce.com/u/sonicwarrior)\
**Post date:** [December 10, 2005, 9:19pm UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/12 "2005-12-10T21:19:25Z")

</div>

> [@jules](#):
>
> blimey, that’s a bit pathetic, isn’t it? I’ll change the name.

Well, in google I found a mailing list entry of the GNU Make developers that they wanted to fix that issue (from 2003 or so). Don’t know why this is still a problem (I used Dev-C++ 4.9.9.2).

But I tend to generally avoid blank spaces in paths to avoid problems. 😉

---

<div class="post-metadata">

**Author:** ![sonicwarrior](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sonicwarrior](https://forum.juce.com/u/sonicwarrior)\
**Post date:** [December 21, 2005, 9:28am UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/13 "2005-12-21T09:28:36Z")

</div>

> [@SigmaDeltaRob](#):
>
> Step 12: Still inside project options (alt-p), add this to linker parameters. “-ljuce -lmsvfw32 -lwinmm -lrpcrt4” without the quotes.

This has changed in Juce 0.21: Some more library files have to be added.

Better do whatever the actual Juce installation documentation says. 😉

---

<div class="post-metadata">

**Author:** ![IvanC](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ivanc/32/685_2.png) [@IvanC](https://forum.juce.com/u/IvanC)\
**Post date:** [March 1, 2006, 10:34am UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/14 "2006-03-01T10:34:05Z")

</div>

In the documentation, it is not specified that libopengl32.a is needed…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 9:51am UTC](https://forum.juce.com/t/dev-c-or-how-to-impress-your-mom-and-friends-in-14-steps/48/15 "2017-05-12T09:51:13Z")

</div>

Closed on May 12, 2017, 9:51am UTC


