D
Der Andere
I need to run a C++ program via the CGI. I write and test the programs on a
Windows machine, but as the server runs on Sun OS I cannot compile the files
on my machine. Compiling on the server does work only in very simple cases.
Most gcc compiler errors (there are quite a lot) start with "undefined
reference". How can I supply the necessary libraries (as this seems to be
the problem)?
In order to compile I used gcc -o executable sourcefile.cpp
I have the following includes in my program:
#include <iostream>
#include <cmath>
#include <limits>
#include <cassert>
#include <iomanip>
#include <string>
#include <fstream>
#include <queue>
#include <cstdio>
#include <cstring>
#include <string.h>
#include <stdlib.h>
#include <malloc.h>
using namespace std;
#include "dijkstra.h"
#include "cgi.inc"
Thanks,
Matthias
Windows machine, but as the server runs on Sun OS I cannot compile the files
on my machine. Compiling on the server does work only in very simple cases.
Most gcc compiler errors (there are quite a lot) start with "undefined
reference". How can I supply the necessary libraries (as this seems to be
the problem)?
In order to compile I used gcc -o executable sourcefile.cpp
I have the following includes in my program:
#include <iostream>
#include <cmath>
#include <limits>
#include <cassert>
#include <iomanip>
#include <string>
#include <fstream>
#include <queue>
#include <cstdio>
#include <cstring>
#include <string.h>
#include <stdlib.h>
#include <malloc.h>
using namespace std;
#include "dijkstra.h"
#include "cgi.inc"
Thanks,
Matthias