Results 1 to 3 of 3

Thread: Link dependent .lib file without export its function to output DLL

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2015
    Posts
    72

    Unhappy Link dependent .lib file without export its function to output DLL

    Hello, I'm creating an export DLL project, my DLL use some functions from another open source projects, for example - Zlib Library.
    When I go to Project properties > Linker > Input > 'Additional Dependencies' to add the .lib file that I've got from Zlib. I realized that my DLL not only export some functions that I've wrote but also export functions from Zlib, anyone know how to fix this issue ?
    Last edited by vietnamvodich; May 11th, 2017 at 11:31 AM.

  2. #2
    PowerPoster
    Join Date
    Jun 2015
    Posts
    2,224

    Re: Link dependent .lib file without export its function to output DLL

    have you tried adding an export file (.DEF) to the project?

    https://msdn.microsoft.com/en-us/lib...or=-2147217396

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2015
    Posts
    72

    Re: Link dependent .lib file without export its function to output DLL

    Quote Originally Posted by DEXWERX View Post
    have you tried adding an export file (.DEF) to the project?

    https://msdn.microsoft.com/en-us/lib...or=-2147217396
    Yes, I already used .def file for my dll. I export only few functions on the .def file but the compiler automatic export all functions from the .lib file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width