Sign in to follow this  
proed

errors with angelscript.h

Recommended Posts

[font=comic sans ms,cursive]Hi there.I have error with compiling that: Whats my problem?[/font]
[i]also <iostream> doesn't makes some changes.[/i]

[img]http://img341.imageshack.us/img341/9159/84106105.png[/img] Edited by proed

Share this post


Link to post
Share on other sites
ok now i rewrited that code,but have linker errors(error LNK2019)
1 of error is
[CODE]
LNK2019:undefined external symbol "public: int __thiscall CScriptBuilder::StartNewModule(class asIScriptEngine *,char const *)" (?StartNewModule@CScriptBuilder@@QAEHPAVasIScriptEngine@@PBD@Z) in function "void __cdecl angelscrInit(void)" (?angelscrInit@@YAXXZ)
[/CODE]
+i have included angelscriptd.lib
[img]http://img208.imageshack.us/img208/359/41634304.png[/img] Edited by proed

Share this post


Link to post
Share on other sites
The add-ons aren't compiled in the library. If you want to use an add-on you need to add it to your project in addition to the AngelScript library.

Share this post


Link to post
Share on other sites
also i have error LINK : fatal error LNK1181: cannot open input file "angelscriptd.lib"
with every angelscript project

Share this post


Link to post
Share on other sites
angelscriptd.lib is the debug version of the library.

If you're building your project in debug mode you should link to angelscriptd.lib, but in release mode you should link to angelscript.lib.

Share this post


Link to post
Share on other sites

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