i have a serious question about compiling and using this library. it is just not working for me.
my specs are as follows:
Windows XP Pro/Server 2003 (i'm doing this on both)
Visual Studio C++ Express
Platform SDK
Apache 2.0.59
Intel Proc
1GB RAM
this is what i did so far:
i compiled the Apache 2.0.59 sources to generate the appropriate static libraries. i took those libraries and the headerfiles and moved them to thier own folder and made the IDE point to it directly
i compiled mod_cplusplus as is after the dsw was converted to the newest solution. i got a static .lib from that.
i took one of the examples. the handler one to be exact and i compiled that into a static library (test.lib).
within the Apache 2.0.59 i put this at the BOTTOM of the httpd.conf:
LoadModule cplusplus_module modules/mod_cplusplus.so
PassCPPServerVar tolower Host
#LoadCPPHandler test_handler E:/test.lib
#AddCPPHandler test_handler
unfortunatly i could not get the mod_cplusplus.lib to work but apache already had an .so if it already in it's modules' folder. so i pointed to that first. the last two parts of the .conf just does not work whatsoever.
what can i do to get the rest of this to work? i'm very excited to use this library as i really want to create websites with C++.
thank you for your help,
Andric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For all apache handlers (including mod_cplusplus itself, and your CPPHandlers) you need to have them compiled into a dynamic library (i.e. usually an so or dll). Static libraries can't be loaded dynamically. Did you compile a dynamic library?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
no i did not compile either into a DLL. i will figure out how to do this (it's been years since i've done C++) and i'll try it again. i figured that was what the issue was.
thank you for your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have a serious question about compiling and using this library. it is just not working for me.
my specs are as follows:
Windows XP Pro/Server 2003 (i'm doing this on both)
Visual Studio C++ Express
Platform SDK
Apache 2.0.59
Intel Proc
1GB RAM
this is what i did so far:
i compiled the Apache 2.0.59 sources to generate the appropriate static libraries. i took those libraries and the headerfiles and moved them to thier own folder and made the IDE point to it directly
i compiled mod_cplusplus as is after the dsw was converted to the newest solution. i got a static .lib from that.
i took one of the examples. the handler one to be exact and i compiled that into a static library (test.lib).
within the Apache 2.0.59 i put this at the BOTTOM of the httpd.conf:
LoadModule cplusplus_module modules/mod_cplusplus.so
PassCPPServerVar tolower Host
#LoadCPPHandler test_handler E:/test.lib
#AddCPPHandler test_handler
unfortunatly i could not get the mod_cplusplus.lib to work but apache already had an .so if it already in it's modules' folder. so i pointed to that first. the last two parts of the .conf just does not work whatsoever.
what can i do to get the rest of this to work? i'm very excited to use this library as i really want to create websites with C++.
thank you for your help,
Andric
For all apache handlers (including mod_cplusplus itself, and your CPPHandlers) you need to have them compiled into a dynamic library (i.e. usually an so or dll). Static libraries can't be loaded dynamically. Did you compile a dynamic library?
thank you for the quick responce.
no i did not compile either into a DLL. i will figure out how to do this (it's been years since i've done C++) and i'll try it again. i figured that was what the issue was.
thank you for your help.