can build Examples without any issues but not my code..

hi everyone…I just downloaded OF yesterday and installed it on Ubuntu lucid…

the ./install_codeblocks.sh was not doing anything so i manually installed CodeBlocks…

I’m working with this version of OF: of_preRelease_v0061_linux64_FAT

The issue I’m having is that when i open any example file I’m able to build each and every example…
but when I try to build my own code it gives me errors about not being able to find “ofMain.h”
and other header files…
so I manually have to set them up…

my question is why doesn’t it error out in any of the example files?

i cant really figure it out :shock: …and would really appreciate it if someone could point me to the right direction…

Thanks

hi bhaveshpandey,

When compile the examples of OF all the search paths, preprocessor options and linker settings have been setup correctly for you. It depends how you created your own project. When you just create a new project (File > New Project), you have to setup everything yourself to get it compiled.

The way to go is to copy the emptyExample project to your own subdirectory in “apps” (so i.e. apps/bhaveshpandey/mytestapp), open it and rename the project using Project > Properties.

Hope this help! Good luck,
Roxlu

hey thanks a ton Roxlu!!
it works :slight_smile:
it explains why when i inserted my files in the examples project they compiled without complaining…
i guessed i was missing something…
thanks again