Giter Club home page Giter Club logo

Comments (3)

galkahana avatar galkahana commented on July 4, 2024

that doesn't sound right to me. once building the lib you should be getting static libs .lib files (or + dll if compiled to shared files) and at this point should need only them. Defo not any obj files (i mean from the library, sure your code still compiled to .obj). So it might be that how the project links to the lib files might be wrong. make sure to link to them, and use the headers as search libs, but don't try to compile them.
if you can recreate this with a small project and send it to me maybe i can have a look and see what's wrong.

from pdf-writer.

EbCoom avatar EbCoom commented on July 4, 2024

from pdf-writer.

galkahana avatar galkahana commented on July 4, 2024

wow. it's been ages since i opened visual studio haha.

ok. i think i understand what's wrong.

In Configuration Properties->Linker->Input under "Additional Dependencies" you put the path to the lib folder. like D:\userFolder\research\filehandler\Filehandler\Filehandler\Filehandler\exts\PDF-Writer-master\etc\install\lib
this is the "lib" in "lib.obj". you see, what you should be putting here is the complete list of the libraries/dlls you link against and a path wont do. you got to include the actual file names. so instead of the folder path list all libs like this:

D:\userFolder\research\filehandler\Filehandler\Filehandler\Filehandler\exts\PDF-Writer-master\etc\install\lib\PDFWriter.lib
D:\userFolder\research\filehandler\Filehandler\Filehandler\Filehandler\exts\PDF-Writer-master\etc\install\lib\FreeType.lib
D:\userFolder\research\filehandler\Filehandler\Filehandler\Filehandler\exts\PDF-Writer-master\etc\install\lib\LibAesgm.lib
D:\userFolder\research\filehandler\Filehandler\Filehandler\Filehandler\exts\PDF-Writer-master\etc\install\lib\LibJpeg.lib
D:\userFolder\research\filehandler\Filehandler\Filehandler\Filehandler\exts\PDF-Writer-master\etc\install\lib\LibPng.lib
D:\userFolder\research\filehandler\Filehandler\Filehandler\Filehandler\exts\PDF-Writer-master\etc\install\lib\LibTiff.lib
D:\userFolder\research\filehandler\Filehandler\Filehandler\Filehandler\exts\PDF-Writer-master\etc\install\lib\PDFWriter.lib
D:\userFolder\research\filehandler\Filehandler\Filehandler\Filehandler\exts\PDF-Writer-master\etc\install\lib\Zlib.lib

I tried this and linking succeeded and i was able to run yr program.
I don't know if there's an option to do like what you attempted, which is to just include all files under a folder in Visual Studio.

Let me know if my explanation is not clear or doesn't otherwise solve the problem you reported.

from pdf-writer.

Related Issues (20)

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.