User forums > Help
Linking multiple chain-dependent static libs
thomas:
--- Quote from: Digited on October 30, 2007, 05:31:25 am ---I tried different tricks, finally removed HWND by void*, all worked fine.
--- End quote ---
You probably know that already, but this is not a good thing to do. Although it surely works and does not matter for the finally generated machine code, it is very, very bad style, as it sabotages the compiler's natural way of type checking. There are good reasons why compilers insist on checking types.
Digited:
Compilers aren't linkers... When linker says that HWND is an undefined symbol and HDC before it isn't, you just have to do something with it. I couldnt do anything, but make a void* hack... _stdcall everywhere, all libs included (rest of win-deps is linked without question).
thomas:
--- Quote ---Compilers aren't linkers... When linker says that HWND is an undefined symbol
--- End quote ---
Well, that is not what you said:
--- Quote ---After I've tried ms compiler, it showed a strange error in one of my static libs - with HWND in header.
--- End quote ---
Either way, HWND is a typedef, and I don't see how it could be a missing symbol unless you have screwed up something really, really bad. What I could imagine is a "type not declared in this scope" error at compile time.
Navigation
[0] Message Index
[*] Previous page
Go to full version