Sign in to follow this  

AngelScript + Borland

This topic is 2833 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone! Do sombody use AngelScript with Borland C++ Builder? Where I can read about subj? Thank you. UPD: I`m try to create Borland project for static library. But on compile stage compileg sow error message: "..\..\source\as_memory.h|97|Error E2321 : Declaration does not specify a tag or an identifier" This line of file contains: "asCArray<void *> scriptNodePool;" [Edited by - Neuronet on February 26, 2010 1:26:42 AM]

Share this post


Link to post
Share on other sites
I will help you with pleasure.

Full eroror stack in BCB:
[C++ Error] as_memory.h(97): E2321 Declaration does not specify a tag or an identifier
--Full parser context
---as_arrayobject.cpp(35): #include C:\BCB6\Projects\as\source\as_config.h
-----as_config.h(740): #include C:\BCB6\Projects\as\source\as_memory.h
-------as_memory.h(82): class asCMemoryMgr

I send to you PM with my email.

Share this post


Link to post
Share on other sites
I built it with C++ Builder 6.0. Yet to test it. If it works OK without exeptions, I will post the steps for you to build it. I could provide the project and precompiled library. It's 5 MB in debug :]
BTW, AngelScript is awesome :)

Share this post


Link to post
Share on other sites
Well, I spoke too early, I guess.... It compiles without any major warnings, It links with the host application without unresolved externals, but testing showed that I can't ExecuteString(..) or engine->Build. Both crashed with an exception "Access violation reading at address..". I traced the first, and it appears it crashes on as_gc.cpp - > void asCGarbageCollector::AddScriptObjectToGC(void *obj, asCObjectType *objType) ->
line engine->CallObjectMethod(obj, objType->beh.addref);
Will investigate further and keep you in touch.

Share this post


Link to post
Share on other sites
I'll explain about it.
I downloaded the last version of AScript and modified some files and project options to get it to compile( I'll explain in details later). I started to test it with a simple Builder 6.0 VCL application and I ran into various crashes, including impossibility to create the engine with the ANGELSCRIPT_VERSION provided. After commenting out the version check it started to look like it's working, but crashed in Build-ing and ExecuteString. That was on my home computer. Today on my work computer I found an old version 2.16.0 (one year old version I think). I built it and started testing with a BCB application. It worked flawlessly [wow]. Test unclude registering global variables and functions, building scripts, calling AngelScript functions and calling AngelScript functions that call C++ functions. Basicaly what I need. :}


To WitchLord :
I'll will send you the old version ( 2.16.0 ) project and sample application and continue trying to get current version compiled and working.

To
Neuronet :
I can send you those things so far. More to come ( I hope so..)
-modified source package of verion 2.16.0 with BCB project.
-instructions how to setup BCB and modify source to compile it yourself.
-precompiled libraries in release and debug.
-sample BCB/VCL application that uses the library.

I have not searched , but I can't see your e@mail address.
Leave it here or PM me.

BTW
I noticed in version 2.16.0 the sintax is a bit different. For example building is not a member of the engine, but of a module if I got that correctly.

Share this post


Link to post
Share on other sites
Success! The issue was mostly on my side [wink].
The latest version compiles and works just fine, as far as I can test.
No need to send older version projects I guess. Tomorrow i'll make a zip with project and sample and send it to both of you.

Share this post


Link to post
Share on other sites

This topic is 2833 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this