Coder Social home page Coder Social logo

Comments (5)

ousnius avatar ousnius commented on September 15, 2024

@TommInfinite The release .lib file I got was actually over 50 MB before I added the /Zc:inline compiler flag for MSVC, which I just did with e55035b

I think the 18 MB size is normal for now, it won't be that large when linking it into your final executable or library because the unused parts of the lib will be removed. Still it's worth investigating, as 18 MB is still not on the smaller side.

from nifly.

TommInfinite avatar TommInfinite commented on September 15, 2024

So in the end I:
1)Used CMake to build "nifly.lib".
2)Added it to my Project folder and added the folder to "Additional Library Directories" in "Properties"
3) Added "nifly.lib" to "Additional dependencies" to "Input"
So when I try to write code, Visual Studio is behaving like library doesn't exists. (Identifier "NifFile" is undefined and etc.)
Have I missed a something?

from nifly.

ousnius avatar ousnius commented on September 15, 2024

So in the end I:
1)Used CMake to build "nifly.lib".
2)Added it to my Project folder and added the folder to "Additional Library Directories" in "Properties"
3) Added "nifly.lib" to "Additional dependencies" to "Input"
So when I try to write code, Visual Studio is behaving like library doesn't exists. (Identifier "NifFile" is undefined and etc.)
Have I missed a something?

You need to include the headers as well.

from nifly.

TommInfinite avatar TommInfinite commented on September 15, 2024

I tried to and failed as well.

Not #include "NifFile.hpp" nor "#include "include\NifFile.hpp"" work.

from nifly.

ousnius avatar ousnius commented on September 15, 2024

You might have to find a tutorial on how to link and include libraries with C++ online, nifly is nothing special here. Closing this as it has nothing directly to do with nifly any longer.

from nifly.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.