hi, below is a makefile which im using to link all object files into one program. I think im just compiling each file and not linking them, can anybody help me with linking these files into one...
Type: Posts; User: gar35
hi, below is a makefile which im using to link all object files into one program. I think im just compiling each file and not linking them, can anybody help me with linking these files into one...
I thought if a function returns something then you must catch it?
Is it possible to have a function that returns a value when one function calls it but doesn't return a value when some other function calls it?
Yea thats right. I have a makefile, should I include this header file in its makefile
When I run my program I get a compiler error saying undefined reference to 'Get_host'
please help
//im_sender.c
#include "cursor.h"
Hi, I want to write a function that takes in 3 arguments of type char*, but when I call this function from other functions I only want to pass in 1 parameter.
So below shows my function and I want...
whoops that was supposed to be int *g = (int*)v.
Hi, when ever I run the function below I get a compiler error saying ISO c++ forbids comparison between pointer and integer, please help.
void Choice_cb(Fl_Widget*, void*v) {
int *g =...
ah... never mind people Ive got it working now.
Thanks alot
insert
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
char* get_time();
No I have included that file
Ok Ive tried using malloc() but I now get an error saying "invalid conversion from void* to char* "
Sorry guys but Im still not getting any success, Ive tried declaring buffer as a char[30] but main() just prints out garbage now.
So should I define buffer as char[30] ?
Ok, Im really new to this, so can you give me some tips on how to solve my problem?
Cheers
Ok, so how can I get round this problem? Im obviously trying to display the current time.
Cheers
the code below compiles but when I try to run it, it crashes and says "segmentation fault", please help.
insert
#include <string.h>
#include <time.h>
#include <stdio.h>
char* get_time();