Menu

Windows compilation and running help

Help
Andric
2007-08-03
2013-05-15
  • Andric

    Andric - 2007-08-03

    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

     
    • John K. Sterling

      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?

       
    • Andric

      Andric - 2007-08-03

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.