Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.development    |    Operating system development chatter    |    4,255 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,820 of 4,255    |
|    Tavis Ormandy to muta...@gmail.com    |
|    Re: DLL    |
|    28 Aug 21 23:26:48    |
      From: taviso@gmail.com              On 2021-08-28, muta...@gmail.com wrote:       > But the DLL being produced is very small and doesn't       > contain the functions I want, and that is confirmed       > by the link map.              You need to mark the symbols you want exported, or the compiler will       assume it's dead code and remove them - they're not visible outside of       the current compilation unit, and you never called them...so why keep       them!              The easy solution is to just add __declspec(dllexport) to the functions       you want exported. Alternatively, you can make a def file to tell the       linker precisely what you wanted.              Tavis.              --        _o) $ lynx lock.cmpxchg8b.com        /\\ _o) _o) $ finger taviso@sdf.org       _\_V _( ) _( ) @taviso              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca