How can you create STATIC linked libray's in msvc++?
Couldn't find any tutorials on it,nor on this board.
How can you create STATIC linked libray's in msvc++?
Couldn't find any tutorials on it,nor on this board.
my turn to (hopefully) help u for once:
http://www.gamedev.net/reference/art...rticle1316.asp
Yeah, i found that site using google too, but funny enough they
skip the part i need to know, how to export and import functions.
*giving the thread the boot*
try this?
http://folk.uio.no/stefanha/StatLibs.pdf
has a section bout adding to project...
http://www.ictp.trieste.it/~manuals/...intro.doc.html
this is borland but its the last hit i got:
http://bdn.borland.com/article/0,1410,22694,00.html
Hm, saw that already too
Funny enough at the end of page 2 it skips everything i need to
know and jumps to the end when compiling, grrr
No, will do that, i dont need to know much, just how you declareOriginally posted by RoD
have you tried MSDN?
the functions, i know it for DLL's
But this doesnt seem to work with LIB's, i get an unresolvedCode:__declspec(dllexport) void bla(); __declspec(dllimport) void bla();
external error
hmm i would think MSDN would have it.
Oke, so i tried the gametutorial's tutorial about DLL's , and used a
Static Lib instead of Dynamic, lib compiles fine, but when i try to
compile the program that uses it it coughs up this
Code:libtester error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl printMessage(void)" (__imp_?printMessage@@YAXXZ) referenced in function _main
i got an error close to that once for a misnamed function:
i had void computescharges prototyp and spelled it
computercharges
int he actual function header...
Yeah, that causes it too, but in this case its because i use a
LIB instead of DLL, help me out! Are there any opensource LIB's
around for study?
have u tried #pragma(lib, "name")