Sign in to follow this  

AngelScript g++ release/debug

This topic is 4355 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

Compiler: g++ 3.4.4, Os: Windows / Linux Fedora Core 2/3 and PC Linux If I compile and link the angelscript debug version to my project is running the scripts just fine. If I am building the the release version of angelscript and and then I am linking to it I am getting back from the script lib call RunScript: "Invalid Configuraton". Thinks work fine with microsoft c++ compiler (release debug). Thank You.

Share this post


Link to post
Share on other sites
Hmm, this must be a define that is different for release mode. I'm guessing the problem is with the registration of the internal object types, array, struct, or any.

I'm not that experienced with g++, but I'll try to figure out what the problem is.

Should someone with experience with g++ and AngelScript like help me out here I would be grateful.

Regards,
Andreas

Share this post


Link to post
Share on other sites
This may be a long shot because I'm unexperienced in AngelScript, and g++. But I had a problem where it would link with the wrong library when I compiled it. (If I added the debug library it would link properly with debug, but when it was in release it would link with the debug library without errors)

I did this (MSVS equivilent)

#ifdef _DEBUG
#pragma comment(lib, "AngelScriptd.lib")
#else
#pragma comment(lib, "AngelScript.lib")
#endif


I hope this helps. :P

Share this post


Link to post
Share on other sites
Quote:
Original post by Marius
Yes I will place the link in few hours at:
geticserver


I tryed to make it as simple as it can be build on your side.
The make files are:
makeangel
makebaselib
makegeticnetserv

The libraries are prebuild in _lib directory debug and release
versions '*(d).a'
The executables are geticnetserv.exe. and geticnetservd.exe
The script is in \_bin\_scripts\geticnetsrv.

Running debug version; the server connects to
www.zalsoft.com and download all the maps from there in your
_bin\server_dir
The relase version just prints out the 'Invalid Configuration'

I also added a client that connects to the server on the local machine and
get's the levels from it.

I updated the link with Code::Blocks C++ IDE workspaces at
geticserver2.rar
Please ignore the previous link.

I really appreciate your help.
Thank you

Regards,
Marius

Share this post


Link to post
Share on other sites
I got the latest build angelscript_2.4.1d.zip.
After I changed the code match new functions signatures:
scr_engine.CreateContext();
and
scr_engine.Build()

scr_engine.Build() return an error in release builds.



Share this post


Link to post
Share on other sites
I haven't been able to find the time to test this yet (I've been travelling), but I'll try to do so this week.

It's strange that nobody else is having this problem, because I know there are plenty of users that uses g++ with AngelScript.

Share this post


Link to post
Share on other sites
I took a quick look at the project files that you use to compile AngelScript.

You've defined the flag AS_DEPRECATED in the release version, but not in the debug version.

It's possible that this is the cause of your problems. Please remove that flag and try again.

I'll try to install Code::Blocks in order to compile your project when possible.

Regards,
Andreas

Share this post


Link to post
Share on other sites

This topic is 4355 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