HI,

I'm a newbie with clucene, c++ and xcode, but I know other langs as java,
c#, ... and I'm trying to run clucene demo with xcode but without success.
I'm putting the files from clucene_dir/src/demo/*cpp
and clucene_dir/src/demo/*h into my root xcode project path and I'm setting
the Header Search Paths variable (xcode menu: Project->Edit Project
Settings->Build) to /usr/local/include and /usr/local/lib (both recursive)
and when I build project I'm getting many errors with declared names in
IndexFiles.cpp, like:

/Users/marcelo/projects/xcode-ws/cluceneTest/IndexFiles.cpp:73:0
/Users/marcelo/projects/xcode-ws/cluceneTest/IndexFiles.cpp:73: error: 'DIR'
was not declared in this scope

#include "stdafx.h"


#include "CLucene.h"

#include "CLucene/util/Reader.h"

#include "CLucene/util/Misc.h"

#include "CLucene/util/dirent.h"

#include <iostream>

#include <fstream>


using namespace std;

using namespace lucene::index;

using namespace lucene::analysis;

using namespace lucene::util;

using namespace lucene::store;

using namespace lucene::document;


Document* FileDocument(const char* f){

// make a new, empty document

Document* doc = _CLNEW Document();


...

void indexDocs(IndexWriter* writer, char* directory) {

DIR* dir = opendir(directory); *// line with this error*


 if ( dir != NULL ){

struct dirent* fl;

...


Please, can anybody help me to solve this error?

Thanks
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
CLucene-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to