Embedding a C++ program in a game project
Hello everyone, I'm trying to embed chatscript in a project I'm working on. Chatscritpt is an open source chatbot C++ program, but it's meant also to be embedded in bigger applications.
First of all I assured myself that it was compilable with vs2015 (Chatbot is shipped with a vs2010 project) and it is. Then I just added the source code (actually the whole folder of chatcript) in the game directory inside the source folder of my unreal project, and that's here were my problems started.
Thanks to the complaints of the compiler and google I discovered that I had to wrap all the windows related include with:
And I had to include the chatcript common.h also in the unreal files I have (for now just an Actor class, and the main class of the project). Now though I'm stuck with these errors:
I'm new to C++ (but not new to programming, I know Java and C#), I think there is still some problem with some windows include but this time google didn't help me, and I have no clue. Some of you have some suggestions?
asked Feb 26 '16 at 11:11 PM in C++ Programming
I solved the problem, here are the steps:
In my case I had also to modify the source code to compile without errors. I hope this could help!
answered Apr 05 '16 at 06:28 PM
Could you compile this chatbot as a static library and then bring it in?
answered Feb 27 '16 at 12:14 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here