View Single Post
Old 08-19-2007, 07:04 PM  
mryellow
Confirmed User
 
Industry Role:
Join Date: May 2001
Location: Australia
Posts: 934
Quote:
// start c++ program
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
#include <cstdio>
#include <Magick++.h>

#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <fcntl.h>
#include <cerrno>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <dirent.h>
#include <vector>
#include <assert.h>
#include <sys/stat.h>
#include <algorithm>
#include <time.h>

That's too many libraries that aren't common on servers and are probably
unneeded. Going to make installers harder..... Like this for example
<arpa/inet.h>... I imagine that some sockets wrapper.... You can remove
that and just use <sys/socket.h>.... Should just use base simple libraries, all
the other stuff can be coded in the main program without needing all these
libraries to be in specific paths. Will take a few extra lines of code, but will
mean it can be done with only a few standard libraries.

-Ben
__________________
Cyberwurx Hosting
After trying 5 different hosts, I found the best.
Since 1997 I've had 2 hours of downtime.
Fast support, great techs, no hype, no gimmicks.

<- I in no way endorse whatever just got stuck on the left of my post.
mryellow is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote