Josh Posted July 26, 2012 Share Posted July 26, 2012 I compiled Leadwerks into a VS static lib and included it in another VS project. When I simply call this in the main program, the program prints the string, but then a buffer overrun error occurs. Any ideas why this could be happening?: Print("Hello, world!"); The code works fine if I run it in a project that compiles source files instead of using a static lib. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Furbolg Posted July 27, 2012 Share Posted July 27, 2012 Could you show us the Defination and Implementation of Print ? Quote Link to comment Share on other sites More sharing options...
Roland Posted July 27, 2012 Share Posted July 27, 2012 Hard to say what the problem is. However here is a print static lib and an application that used the lib. Maybe you have some compiler setting wrong. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Josh Posted July 27, 2012 Author Share Posted July 27, 2012 The problem is the two builds did not use the same debug runtime library. It works fine now, thanks. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.