I'm using Code::Blocks on Linux, specifically Ubuntu 9.10.
Problem: My projects cannot find and use the files from other projects.
I have 2 projects: bStats and bStream. Both work and compile just fine within their own projects, and both have their files in the same place with the same structure (~ used simply for brevity):
~/lib/bSt*/bS*.h
~/lib/bSt*/bS*.cpp
Where the project files are located in:
~/projects/bSt*/
Using these include lines:
#include "bStat/bStat.h"
#include "bStream/bStream.h"
In each package the file is found, and works fine for the respective package. The problem I'm running into is when I actually try to use the package:
I get the following error
/home/muppetjones/Ubuntu One/projects/bStat/main.cpp||In function ‘int main()’:|
/home/muppetjones/Ubuntu One/projects/bStat/main.cpp|21|error: ‘bStream’ was not declared in this scope|
/home/muppetjones/Ubuntu One/projects/bStat/main.cpp|21|error: expected ‘;’ before ‘bs’|
||=== Build finished: 2 errors, 0 warnings ===|
I know this is not a C++ error -- it is project dependent, which tells me there is a problem calling code from different projects.
I have tried adding the class directory, the lib directory...everything I can think of and in all the places which seem appropriate, but nothing seems to work. Please help!