Menu

Compiling CGI programs written in C++

2002-11-10
2012-09-26
  • Nobody/Anonymous

    This is probably a simple question, but how do I compile a C++ source file  have written to a CGI program using DEV C++? I have tried this:

    g++.exe "C:\My Files\CGI1.cpp" -o "C:\My Files\CGI1.cgi"   -s  -I"C:\DEV-CPP\include"  -I"C:\DEV-CPP\include\g++-3"  -I"C:\DEV-CPP\include"   -L"C:\DEV-CPP\lib"

    (as shortcut parameters obviously) but the outputted CGI file returns a 404 error when I try to access it. The program works fine in the DOS prompt. Please help.

     
    • Nobody/Anonymous

      Sorry about the multiple posting! It wasn't intentional, I refreshed the forum page a couple of times to check for replies, but it resubmitted the post... :S

       

Log in to post a comment.