I am a Netbeans user and willing to write CGI scripts in C++ by using Netbeans IDE. Assuming that every CGI script will need a separate main() function. How can I build the entire project?
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
Why do you need seperate program? Can't you use a single program as controller checking the request? So that
If you want to have one application per task then you should use multiple dependant projects in NetBeans. Maybe a base library holding common routines and then a project per frontend. Else you might mess with the auto-generated Makefile.
As a sidenote: Why are you bulding CGI binaries? Often one can benefit from using Server-specific modules (i.e. apache httpd apxs modules) If you don't want server-specific code but higher performance (why else would one use C++ for that) you should at least look into FastCGI.
|show 1 more comment|