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");
}
Thanks,
Andrei
export myfunc()
{printf("static lib example");
}
Thanks,
Andrei
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)
japheth
to export a function address is only nessessary for binary code (DLLs). For stat?c libraries you dont need that (although it shouldnt hurt)
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.
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.