0

I've created a new class called BulletList2(linked list) using the built in dialog(File>New Class) which created a header file called bulletlist.h (in project folder>include) and a source file called bulletlist2.cpp(in project folder > src).

header file

#ifndef BULLETLIST2_H
#define BULLETLIST2_H


class BulletList2
{
     [...]
}
#endif // BULLETLIST2_H

In class and main file

#include "bulletlist2.h"

I get this error:
fatal error: bulletlist2.h: No such file or directory|
||=== Build finished: 1 errors, 0 warnings ===|

I'm using Ubuntu Natty Narwhal 64-bit and Code::Blocks installed from Software Center

2
Contributors
3
Replies
16
Views
5 Years
Discussion Span
Last Post by Epicurus
0

Code::Blocks normally puts all *.h and *.cpp files in the same folder as the project itself. If you move those files somewhere else you will have to tell CB where to find them.

0

'src' and 'include' are subfolders in my project folder and I didn't move anything, they were placed there by the wizard

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.