So I want to make a static library in vc. I select static library from win32 aplication and then how do i export the funcions that i want to access from a standard c file? should i use :
export myfunc()
{printf("static lib example");

Posted on 2001-12-30 17:06:46 by Unregistereddd

to export a function address is only nessessary for binary code (DLLs). For stat?c libraries you dont need that (although it shouldnt hurt)

Posted on 2001-12-30 17:20:31 by japheth
Adding the export stuff (or building a .def file) allows you to build
your library as both static and dynamic.

Btw, you should add the "static" keyword to anything you don't
want to export, to keep it non-public (aka private). This is good
coding practice.
Posted on 2001-12-30 22:46:28 by f0dder