|
|
| Author |
Message |
| Evilbob |
This post is not being displayed .
|
 Evilbob Crazy Courier

Joined: 26 Nov 2002 Karma :  
|
 Posted: 17:47 - 08 Oct 2003 Post subject: linux help stupid questions |
 |
|
k just installed and trying to program but well have no clue what i am doing
Q1) when i in shell i type c++ (gcc) and it dont do anything as i ashume that i havent got the programming bits installed and it keeps holding cd's hostage???
Q2) in emacs i type in code and try to compile but it says nothing to be done for my file to be done??
arrrrrrrrrrrrrrrrrrrrrrrrrrr this is sooooo going well please help me. ____________________ ============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time 
Last edited by Evilbob on 18:04 - 08 Oct 2003; edited 1 time in total |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Evilbob |
This post is not being displayed .
|
 Evilbob Crazy Courier

Joined: 26 Nov 2002 Karma :  
|
 Posted: 17:47 - 08 Oct 2003 Post subject: also |
 |
|
what the hell is the make directory command as well???? ____________________ ============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time  |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| MarJay |
This post is not being displayed .
|
 MarJay But it's British!

Joined: 15 Sep 2003 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Evilbob |
This post is not being displayed .
|
 Evilbob Crazy Courier

Joined: 26 Nov 2002 Karma :  
|
 Posted: 20:57 - 08 Oct 2003 Post subject: linux |
 |
|
going all good but while i play i want to have mp3s playing.
any way so i only seem to get uncompiled stuff like *.tar.tz
anyway so un zip em
make em
make install
and then what the fuck happens i realise they go to /user/local/bin
but cant seem to do anything with em?!?!?! tryed asssiating it with files
making an icon and adding the prefixes
i just wanted a windo to pop up that would play my mp3s of a cd, the naff stuff with linux (red hat8) dont seem to work.
cheers
client program almost done (dancing) ____________________ ============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time  |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| EuropeanNC30R... |
This post is not being displayed .
|
 EuropeanNC30R... Gay Hairdresser
Joined: 20 Jun 2002 Karma :   
|
 Posted: 22:30 - 08 Oct 2003 Post subject: |
 |
|
I had Red Hat 8 for while, it wouldn't play mp3's for me either. It said somewhere on the website it was a legal thing. There was instructions on how to sort it but they were beyond my ability at the time.
A makefile is a file that when you call it(using 'make' from the terminal in the makefile's directory), compiles all your code modules/functions at once so that they're linked together and can share code.(I think - haven't done anything with them for months and my memory's a bit sketchy ) |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Evilbob |
This post is not being displayed .
|
 Evilbob Crazy Courier

Joined: 26 Nov 2002 Karma :  
|
 Posted: 22:32 - 08 Oct 2003 Post subject: arrrr |
 |
|
sodding language any one help
/* sending to port 7890 */
#include <iostream.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/time.h>
#include <time.h>
unsigned long host_toaddr(char *who)
{
struct hostent *hostdata;
unsigned long *hostaddresspointer;
if ((hostdata = gethostbyname(who)) == NULL)
{
perror("Bad hostname lookup");
exit (11);
}
hostaddresspointer = (unsigned long *)(hostdata -> h_addr);
return *hostaddresspointer;
}
int main(int argc, char **argv)
{
setbuf(stdout, NULL);
int rxsock;
int txsock;
struct sockaddr_in listen_socket;
struct sockaddr_in dest_socket;
char packet_buffer[200];
if ((txsock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
{perror ("cant open tx socket");
exit (1);
}
if ((rxsock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
{perror ("cant open rx socket");
exit (2);
}
unsigned long host = host_toaddr(argv[1]);
dest_socket.sin_family = AF_INET;
dest_socket.sin_addr.s_addr = host;
dest_socket.sin_port = 7890;
/* if (sendto (txsock, packet_buffer, 40, 0, &dest_socket, sizeof(dest_socket)) < 0)
{
perror ("cant send");
exit (5);
} */
}
Error is cannot convert `sockaddr_in*' to `const sockaddr*' for &dest_socket
GRGRGRGRGRGRG i getting a headack now ____________________ ============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time  |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| EuropeanNC30R... |
This post is not being displayed .
|
 EuropeanNC30R... Gay Hairdresser
Joined: 20 Jun 2002 Karma :   
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Evilbob |
This post is not being displayed .
|
 Evilbob Crazy Courier

Joined: 26 Nov 2002 Karma :  
|
 Posted: 23:08 - 08 Oct 2003 Post subject: code |
 |
|
arrr nackers, might take it into uni and try there then
thanks ____________________ ============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time  |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
Old Thread Alert!
The last post was made 22 years, 182 days ago. Instead of replying here, would creating a new thread be more useful? |
 |
|
|