Re: [Dev-C++] How To Compile CGI Scripts For Linux Server In Windows
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Andrew H. <ah...@fi...> - 2001-02-28 02:30:14
|
You will need to compile them on a linux machine, preferably the web server itself (each linux machine is unique enough that a program compiled on one might not run on another). If you wrote the program in C, then type "gcc -o exename source1.c source2.c source3.c" If you wrote the program in C++, it's "g++ -o exename source1.cpp source2.cpp" Replace "exename" with whatever you wish to call the executable file, and replace sourceN with your list of source files. For example, if I wish to compile hello.cpp into the executable "hello", I would type "g++ -o hello hello.cpp" Now copy the executable to your cgi-bin directory and you should be set. Andrew At 01:04 PM 2/24/2001 +0530, you wrote: >Hello Friends, > My website is hosted on a linux server and i want to put some CGI > scripts on my site. I wrote CGI's But How Should I compile them to work > on a linux server I will be needing .out or some other format compatible > with linux how to copile them in Windows Me and Dev-C++ or Some Other > Compiler. So That I can Upload them. Please Help Me. |