# Juce on Eclipse--ultra newbie question

**URL:** <https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531>\
**Category:** General JUCE discussion\
**Created:** [January 14, 2009, 6:02am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531 "2009-01-14T06:02:54Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 14, 2009, 6:02am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/1 "2009-01-14T06:02:54Z")

</div>

Hi All:

I’m a java developer, but spanking new to C++.

I’m just trying to get the basic 4-file program from the sticky working in the Eclipse IDE for C++. I figured out how to get the path to the Juce files listed in the ‘INCLUDES’ part of the tree, but Eclipse still doesn’t seem to be able to resolve them. I basically just unzipped the juce tree into a folder, and pointed to that. Is there something different I should do?

Any sense what I may be doing wrong?

Thanks!  
-eric

---

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 14, 2009, 6:14am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/2 "2009-01-14T06:14:58Z")

</div>

Okay, figured one thing out. I had it in the wrong include area. Now I am seeing juce.h, but I get an error at:

START\_JUCE\_APPLICATION(AppClass)

It says it’s a syntax error. It’s not a syntax I know, but that’s not saying much!

Before that, I’m getting all kinds of errors at the AppClass destructor, and almost everything in the window files is not found.

I’m guessing there’s some process for recognizing the whole file tree, and correctly getting it all set up. I’ll reread the instructions for VC, and see if I get any ideas…

---

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 14, 2009, 6:30am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/3 "2009-01-14T06:30:40Z")

</div>

Okay, after reading more posts on this forum, it sounds like I should be working from MS tools… I’m all for open source, and Eclipse works great for my java stuff, but it looks to be beyond my scope to get anything working in Eclipse, at least until I understand C++ better.

So I’ll try that…

---

<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:** [January 14, 2009, 10:28am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/4 "2009-01-14T10:28:27Z")

</div>

Yes, trying to port a framework to an unsupported compiler when you’ve not yet figured out c++ does sound a bit ambitious!

---

<div class="post-metadata">

**Author:** ![Bruce\_Wheaton](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@Bruce\_Wheaton](https://forum.juce.com/u/Bruce_Wheaton)\
**Post date:** [January 14, 2009, 1:02pm UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/5 "2009-01-14T13:02:14Z")

</div>

I had Juce working on Linux in Eclipse, but it wasn’t great. I changed to Code::Blocks and it was better, but if you’re on Windows, best to use a system with a ready to-go project file.

I was using VC++ Express last. It’s free and seemed to work well.

But C++ is always a fight with includes, paths, defines etc. when you move to a new IDE.

Bruce

---

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [January 14, 2009, 10:33pm UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/6 "2009-01-14T22:33:40Z")

</div>

as Kenneth C. Dyke said somewhere…

> [@](#):
>
> C++: The power, elegance and simplicity of a hand grenade

😃

---

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 14, 2009, 11:10pm UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/7 "2009-01-14T23:10:23Z")

</div>

Thanks all for the kind responses. But as ever, a little RTFM was in order…

I missed the line about ‘check the JUCE readMe files’ in the instructions.

Okay then.

Still going to try with VC instead of Eclipse, but I was missing the first 40 or so steps in the process either way.

cheers!  
-e

---

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 15, 2009, 12:15am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/8 "2009-01-15T00:15:41Z")

</div>

Okay, I have followed the readme to the best of my ability. There seems to be a new version of VCExpress since it was written, however.

Here’s what I got in my first build attempt:

Compiling…  
ApplicationStartup.cpp  
BinaryData.cpp  
juce\_LibrarySource.cpp  
d:\code\juce\juce\_amalgamated.cpp(18228) : fatal error C1083: Cannot open include file: ‘Movies.h’: No such file or directory  
MainDemoWindow.cpp  
AudioDemo.cpp  
DragAndDropDemo.cpp  
FontsAndTextDemo.cpp  
InterprocessCommsDemo.cpp  
OpenGLDemo.cpp  
PathsAndTransformsDemo.cpp  
QuickTimeDemo.cpp  
TableDemo.cpp  
Generating Code…

Any ideas what I screwed up???  
Thanks!  
-eric

---

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 15, 2009, 2:10am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/9 "2009-01-15T02:10:30Z")

</div>

okay, I tried the process from the sticky, and once again, it seems to be out of date. I couldn’t find any of the configuration stuff for debug or release.

I get this error:

1\>LINK : fatal error LNK1104: cannot open file 'jucelib\_static\_Win32\_debug.lib’  
1\>Build log was saved at "file://d:\CODE\Visual Studio 2008\Projects\JuceTest\JuceTest\Debug\BuildLog.htm"  
1\>JuceTest - 1 error(s), 0 warning(s)

Okay, enough Juce attempts for today. Time for some ultra-basic tutorials in VC–maybe I’ll figure out what some of this terminology means.

cheers!  
-eric

---

<div class="post-metadata">

**Author:** ![haesslich](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@haesslich](https://forum.juce.com/u/haesslich)\
**Post date:** [January 15, 2009, 7:52am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/10 "2009-01-15T07:52:27Z")

</div>

[quote=“woodslanding”]  
d:\code\juce\juce\_amalgamated.cpp(18228) : fatal error C1083: Cannot open include file: ‘Movies.h’: No such file or directory

Any ideas what I screwed up???  
Thanks!  
-eric[/quote]

there are some threads about this in the forum. also this is documented in the juce files at the appropriate point (i don’t remember where actually right now), but i’m sure you will find this in the forum. solution is quite easy.

---

<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:** [January 15, 2009, 10:04am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/11 "2009-01-15T10:04:57Z")

</div>

If you take a look at the line where the error happens, you’ll see a helpful comment right above it, explaining what’s going on!..

---

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 17, 2009, 9:12am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/12 "2009-01-17T09:12:29Z")

</div>

Okay, successfully compiled and ran the jucedemo and the plugin host.

Yay!

But, in trying out the project from the starting point guide, I’m still getting the  
jucelib\_static\_Win32\_debug error I mentioned above. And if I add juce/bin to my LIB paths, I get a bunch of duplicated class errors:

`1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z) already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) already defined in MSVCRTD.lib(MSVCR90D.dll)
`

So not sure if I should be using this path or not (??!) maybe I have some other lib path set that I shouldn’t be using…

I’m using the latest VC Express. I found a reference to the second problem in these forums, but that involved changing the setting ‘multi-threaded debug dll’ to not use a dll. But this setting doesn’t seem to exist in VC Express. Or it’s been moved somewhere I can’t find it.

Thanks, as ever for any tips!  
-eric  
[/code]

---

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 17, 2009, 9:31am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/13 "2009-01-17T09:31:00Z")

</div>

Okay, I did find out where to set the multithreaded debug to non-dll, but that hasn’t helped the problem. So I guess it’s somewhere in the paths… maybe somebody knows which library I have wrongly included?? I searched my whole computer for MSVCR90D.dll, and turned up nothing.

---

<div class="post-metadata">

**Author:** ![krokodiel](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@krokodiel](https://forum.juce.com/u/krokodiel)\
**Post date:** [January 17, 2009, 11:25am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/14 "2009-01-17T11:25:37Z")

</div>

Hey,  
I am just getting started with code blocks (downloaded the 8.02)  
and actually it works quite well, maybe you should give it a try.  
Theres a codeblocks project file in build\win32\codeblocks

I get some errors with the forcedinline define though,  
which i could avoid by changing juce\_PlatformDefs.h at that point "  
(#define forcedinline inline )

Now it compiles ok, but would it work.  
–\> are there unit tests for this library so that i can check compiler compliancy ??

–\> I just compiled and ran the juce demo, seems to work fine…  
at last i am freed from M$ tools for my windows c++ development 🙂

Good thing, Jules, this is really great…  
I will experiment with audio a little bit the coming weeks.  
If i can make anything useful i will upload the code, is there a repository ?

---

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 17, 2009, 7:37pm UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/15 "2009-01-17T19:37:47Z")

</div>

These are my library paths:

(VCInstallDir)lib (VCInstallDir)atlmfc\lib  
(VCInstallDir)atlmfc\lib\i386 (WindowsSdkDir)lib  
(FrameworkSdkDir)lib (VSInstallDir)  
$(VSInstallDir)lib  
C:\Program Files\QuickTime\QuicktimeSDK\Libraries  
C:\Program Files\QuickTime  
D:\CODE\juce\bin

And these are my include files:

(VCInstallDir)Include (VCInstallDir)atlmfc\Include  
(WindowsSdkDir)Include (FrameworkSdkDir)Include  
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include  
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\crt  
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\mfc  
C:\Program Files\QuickTime\QuicktimeSDK\CIncludes  
C:\Program Files\QuickTime\QuicktimeSDK\ComponentIncludes  
D:\CODE\vstsdk2.4  
D:\CODE\ASIOSDK2\common  
D:\CODE\juce

Anything look suspicious there?

Thanks!  
-eric

---

<div class="post-metadata">

**Author:** ![woodslanding](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/woodslanding/32/25_2.png) [@woodslanding](https://forum.juce.com/u/woodslanding)\
**Post date:** [January 18, 2009, 3:19am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/16 "2009-01-18T03:19:39Z")

</div>

Okay, I finally understand how the project preferences window layout works, and got the debug DLL turned off for both ‘debug’ and ‘release’ (still not at all sure what those terms mean) and now I am able to run the demo.

Thanks for the help!! Looking forward to stumbling around at the next level!

-e

---

<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:** [January 19, 2009, 10:34am UTC](https://forum.juce.com/t/juce-on-eclipse-ultra-newbie-question/3531/17 "2009-01-19T10:34:22Z")

</div>

Can’t see any obvious bloopers, but this sort of thing is usually a mis-match between your headers and libs, thanks to MS having so many almost-but-not-quite-identical SDKs. Maybe as you’ve got the Microsoft SDK headers in there, you should be using the corresponding libs?
