Please have a look at cl_demo, and the various tests in cl_test, for some
sample code.
 
Itamar.

  _____  

From: Marcelo Torres [mailto:primac...@gmail.com] 
Sent: ג 12 ינואר 2010 22:16
To: clucene-developers@lists.sourceforge.net
Subject: [CLucene-dev] Help with error with xcode and clucene


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
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to