Click here to Skip to main content
16,011,626 members
Home / Discussions / Web Development
   

Web Development

 
GeneralDisplaying complied help files (*.chm) Pin
Phil.Benson19-Feb-03 23:22
professionalPhil.Benson19-Feb-03 23:22 
GeneralRe: Displaying complied help files (*.chm) Pin
Stephane Rodriguez.21-Feb-03 21:21
Stephane Rodriguez.21-Feb-03 21:21 
GeneralUsing Crystal Report with ASP Pin
Hitu19-Feb-03 22:57
Hitu19-Feb-03 22:57 
GeneralReg problem in using hhctrl.ocx in IE 6.0v Pin
praveenn18-Feb-03 20:39
praveenn18-Feb-03 20:39 
QuestionCGI and C++? Pin
Anonymous18-Feb-03 11:14
Anonymous18-Feb-03 11:14 
AnswerRe: CGI and C++? Pin
markkuk18-Feb-03 12:08
markkuk18-Feb-03 12:08 
GeneralRe: CGI and C++? Pin
Anonymous19-Feb-03 1:47
Anonymous19-Feb-03 1:47 
GeneralRe: CGI and C++? Pin
georgiek5019-Feb-03 2:40
georgiek5019-Feb-03 2:40 
Thanks again for your help, I finally got a basic script running, just some printing to the screen but there is one thing. I can't get it to compile if I use cout, I cant use ofstream and things of the sort. The C equivelents work fine. Does this mean I can forget about c++ on my server and need to stick with c or I am using my includes wrong... Here is what I use to compile:

gcc -o cgitest.cgi cgitest.cpp

and here are the error codes in my telnet client:

/tmp/cccJ3yII.o: In function `main':
/tmp/cccJ3yII.o(.text+0x16): undefined reference to `ofstream::ofstream(int)'/tmp/cccJ3yII.o(.text+0x4b): undefined reference to `ofstream::open(char const *, int, int)'
/tmp/cccJ3yII.o(.text+0x68): undefined reference to `ostream::operator<<(char const *)'
/tmp/cccJ3yII.o(.text+0x7a): undefined reference to `fstreambase::close(void)'
/tmp/cccJ3yII.o(.text+0x104): undefined reference to `ofstream::~ofstream(void)'
/tmp/cccJ3yII.o(.text+0x121): undefined reference to `ofstream::~ofstream(void)'
collect2: ld returned 1 exit status


similar ones for cout... I have included iostream and fstream like so:

<br />
#include iostream.h<br />
#include fstream.h<br />


(with the brackets around by I can't get the files to appear due to HTML!)
but still no luck (compiles fine on my computer). Any ideas?
GeneralRe: CGI and C++? Pin
markkuk19-Feb-03 12:01
markkuk19-Feb-03 12:01 
GeneralMulti select values Pin
fionamoonan18-Feb-03 10:20
fionamoonan18-Feb-03 10:20 
GeneralRe: Multi select values Pin
Jonavis19-Feb-03 21:12
Jonavis19-Feb-03 21:12 
GeneralRe: Multi select values Pin
fionamoonan21-Feb-03 10:53
fionamoonan21-Feb-03 10:53 
GeneralRe: Multi select values Pin
Jonavis21-Feb-03 12:59
Jonavis21-Feb-03 12:59 
GeneralRe: Multi select values Pin
fionamoonan22-Feb-03 10:01
fionamoonan22-Feb-03 10:01 
GeneralRegular Expression Pin
Jamie Nordmeyer18-Feb-03 9:57
Jamie Nordmeyer18-Feb-03 9:57 
GeneralRe: Regular Expression Pin
Jonavis19-Feb-03 23:19
Jonavis19-Feb-03 23:19 
GeneralRe: Regular Expression Pin
Jamie Nordmeyer20-Feb-03 6:13
Jamie Nordmeyer20-Feb-03 6:13 
GeneralRequest.ServerVariables("LOCAL_ADDR") Pin
l a u r e n18-Feb-03 9:05
l a u r e n18-Feb-03 9:05 
GeneralRe: Request.ServerVariables("LOCAL_ADDR") Pin
palbano19-Feb-03 12:29
palbano19-Feb-03 12:29 
GeneralRe: Request.ServerVariables("LOCAL_ADDR") Pin
Jonavis29-Mar-03 16:58
Jonavis29-Mar-03 16:58 
GeneralIE and Word documents Pin
MiamiCoder18-Feb-03 8:34
MiamiCoder18-Feb-03 8:34 
GeneralRe: IE and Word documents Pin
Sarvesvara (BVKS) Dasa18-Feb-03 18:12
Sarvesvara (BVKS) Dasa18-Feb-03 18:12 
QuestionSelect html control size limit? Pin
ErikYuzwa18-Feb-03 4:27
ErikYuzwa18-Feb-03 4:27 
GeneralHelp! error: Object required "this". Pin
devvvy17-Feb-03 22:14
devvvy17-Feb-03 22:14 
GeneralPrinting in IE Pin
Vasudevan Deepak Kumar17-Feb-03 18:28
Vasudevan Deepak Kumar17-Feb-03 18:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.