Jump to content
  • Advertisement
Sign in to follow this  
_the_phantom_

How do you use PhysFS?

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

So, as you may or may not know I'm developing a texture loading library and one of the key features I've got in is PhysFS support. However, I've hit apon a snag with my plan. Orignally I was compiling PhyFS into the library, however as some one pointed out doing this would restrict what others could do with it. So, instead I set it up so it compiles with PhysFS support but relies on the final app linking stage to pull the libs together to make it work. And this is where the problem comes in, you see, both PhyFS and my library both require zlib to work. Now, if I leave out zlib from the phyFS builds of my texture library I get unresolved externals on the final app build pointing to some functions that libpng uses but for some reason cant be found in the library. So, I'm trying to work out how to solve this problem, the current options I can think of are; - include the functions into my library and let the linker work the magic - give some cyptic instructions about using zlib as an external lib for both physFS and my library and letting the linker work the magic But, this kinda depends on how others use the library, as I'd like people to just be able to drop my library in and get going (which is while the first option appeals). Both libraries are using zlib123, which is why the unresolved external is confusing in the extream [oh]

Share this post


Link to post
Share on other sites
Advertisement
With my library, neither.
It expects the final app to have the required functions in it or link to it (most of them resolve, its just 3 functions which dont).

PhysFS wise, the distro statically compiles the zlib code into the library.

The final test application is statically linking to both physFS and my library (well, my library doesnt come in a DLL form anyways).

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!