AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Compiling ChatScript on an Older Mac - Missing files(?)
 
 

Has anyone seen the following errors while compiling for a Mac?

SRC/mongodb.cpp:23:18: error: bson.h: No such file or directory
SRC/mongodb.cpp:24:18: error: bcon.h: No such file or directory
SRC/mongodb.cpp:25:20: error: mongoc.h: No such file or directory

(and then a whole pile of errors that follow from these)

The first two files are in SRC/include/mongo/bson and SRC/mongo/bson while the third is in SRC/include/mongo/mongoc and SRC/mongo/mongoc. Copying them into SRC didn’t help.

I’m using Mac OS 10.7.5 (hardware limitations prevent anything more recent from being used) so the MacChatScript binary won’t work nor can I use the Xcode project included with CS 7.1 (Xcode 4.6.3 is the most recent that I can run).

This is probably just a noob problem but everything that I’ve ever written on the mac has been in objective-c with Xcode where all the whole compile process is automated.

 

 
  [ # 1 ]

Hi, Ken! Welcome to chatbots.org! smile

Ken Muldrew - Jan 12, 2017:

SRC/mongodb.cpp:24:18: error: bcon.h: No such file or directory

Oh, NO!!! big surprise I couldn’t live without bacon! raspberry

Sadly, I cannot help, but I thought I would inject a bit of geek humor. It may not help, but I hope it at least elicited a smile. cheese

BTW, I took the liberty of splitting your post into it’s own thread. I hope you don’t mind.

 

 
  [ # 2 ]

How are you compiling?  Can you send the command line?  What version and flavor compiler?  Are you using an old version of xcode? 

In general when it can’t find headers but you know where they are you need to tell the compiler about the location of the includes.  Usually with some sort of -I command. But without knowing how you are trying to compile it I can’t give any more specifics. If you are using old Xcode you need to find the section to add includes in the build settings.

 

 
  login or register to react