Hi all,
I don't have any significant experience with C++ but recently had to be involved into the project with C++ part (apache modules, actually).
Right now I am just trying to build some existing very much legacy code and face the very weird problem when VC++ linker cannot find one particular function in the apache library (while seeing the rest of them).
The code is like this (as taken from the trivial sample built specifically to tackle this problem):
ap_rputs(ap_gm_timestr_822(r->pool, time(NULL)), r);
(this should just print current date, but it does not really matter much)
And the error I am getting is like this:
error LNK2019: unresolved external symbol _ap_gm_timestr_822@12 referenced in function _hello_handler
Now to the weird part: this function actually exists in the library I am linking with, but its symbol name there is _ap_gm_timestr_822@8 (not @12, but @8 at the end).
I tried to play with almost every possible compiler / linker property in MSVC++ - to no effect, unfortunately.
Could this problem be related to the fact that the library (which is part of apache 1.3 distribution) is built with a different / older / ... compiler than I am using? I am currently using MS VC++ Express 2008. If this is the case, does anyone has an idea of what can be done to get around this issue?