Jump to content
  • Advertisement
Sign in to follow this  

Including AngelScript causes generation of additional .lib

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


I tried to figure it on my own but I failed so I have to ask here - its not a big problem but I'd like to understand why it happens and if possible, prevent it. I include AS as static lib (angelscript.lib obtained from sdk) and then just include its headers to use it, but this caused my project to compile into additional .lib file, on top of Client.exe that is also generated. I checked what it contains and here it is:

Creating library F:\Release\Client\Client.lib and object F:\Release\Client\Client.exp

[font=courier new,courier,monospace]Dump of file Client.lib[/font]

[font=courier new,courier,monospace]File Type: LIBRARY[/font]
[font=courier new,courier,monospace] Exports[/font]
[font=courier new,courier,monospace] ordinal name[/font]
[font=courier new,courier,monospace] _asAcquireExclusiveLock

Everything works fine of course, but I wonder if its necessary, or I did something wrong? Maybe I need to specify some #define?

Share this post

Link to post
Share on other sites
Those are the global external functions. The .lib is created by the compiler/linker automatically when it sees exported functions.

There might be some option to turn this off, but unless you're really bothered by it you can safely ignore it and simply discard the extra .lib.


Share this post

Link to post
Share on other sites
As an additional note, this can actually be useful for tooling, etc depending on your application structure. Instead of linking AS statically with your standalone script compiler (if that's how you do things, again) and having to worry about keeping the two builds in sync, you can actually just import the functions from the main game executable and use those instead, at least on Windows.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!