Ok
I have a quck question about Dev C++. I want to compile some code I wrote into a cgi file right? But I have no idea where to enter the -o *.cgi parameter at??? Thanks for your help.
Ok
I have a quck question about Dev C++. I want to compile some code I wrote into a cgi file right? But I have no idea where to enter the -o *.cgi parameter at??? Thanks for your help.
Dev-C++ doesn't work with CGI scripts, nor perl scripts.
I thought u could just write a C program with the content type thingy in it and tell the comipiler to give it a name of *.cgi
Do u know whicj compilers do allow it?
Jeff Paddon
Undergraduate Research Assistant
Physics Department
St. Francis Xavier University
Perl compilers are the only one's that allow this. Get a free and good compiler from http://www.activestate.com. The link to ActivePerl will be there somewhere, shouldn't be to hard to find. Sorry though, I don't know the address to it.
I was reading on HOw stuff works.com about cgi scripts they said that you can comipile a C program with the -o command and name it .cgi and it would wor as one. They even have examples and stuff. I have placed a link at the bootom of my post if you want to check it out. Alls I want to know is if there is anyway to pass arguments or commands or whatever to the Dev C++ Compiler. Minwq or whatever without using the dos prompt.
Here is the link
Go to the next page after that one for some examples.
Jeff Paddon
Undergraduate Research Assistant
Physics Department
St. Francis Xavier University
Now that I have thought about it, you can, but I think it has to be done in DOS Prompt mode, or else rename the *.exe file. If it can be done, it's only possible in DOS Prompt, unless someone knows of a different way.
[EDIT]I still don't think you can, the only reason why they say C in my opinion is because Perl and C are closely related syntax-wise. They both use if statements and stuff. If you don't believe me, search for perl tutorials, and see the differences[/EDIT]
Last edited by Quantrizi; 06-18-2002 at 11:35 AM.
a better way to do it.
The main reason I replyed agin to this is because it made its way deep into the pages of this forum and I figured more people would read it if it was there
Jeff Paddon
Undergraduate Research Assistant
Physics Department
St. Francis Xavier University