Search:

Type: Posts; User: gar35

Search: Search took 0.01 seconds.

  1. Thread: Makefiles

    by gar35
    Replies
    1
    Views
    801

    Makefiles

    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...
  2. Thread: Function help

    by gar35
    Replies
    3
    Views
    795

    I thought if a function returns something then...

    I thought if a function returns something then you must catch it?
  3. Thread: Function help

    by gar35
    Replies
    3
    Views
    795

    Function help

    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?
  4. Thread: linking error

    by gar35
    Replies
    3
    Views
    1,070

    Yea thats right. I have a makefile, should I...

    Yea thats right. I have a makefile, should I include this header file in its makefile
  5. Thread: linking error

    by gar35
    Replies
    3
    Views
    1,070

    linking error

    When I run my program I get a compiler error saying undefined reference to 'Get_host'
    please help


    //im_sender.c


    #include "cursor.h"
  6. Replies
    1
    Views
    1,169

    Sending fewer parameters then arguments

    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...
  7. Thread: compiler error

    by gar35
    Replies
    5
    Views
    914

    whoops that was supposed to be int *g = (int*)v.

    whoops that was supposed to be int *g = (int*)v.
  8. Thread: compiler error

    by gar35
    Replies
    5
    Views
    914

    compiler error

    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 =...
  9. Replies
    15
    Views
    1,746

    ah... never mind people Ive got it working now....

    ah... never mind people Ive got it working now.
    Thanks alot
  10. Replies
    15
    Views
    1,746

    insert #include #include...

    insert


    #include <string.h>
    #include <time.h>
    #include <stdio.h>
    #include <stdlib.h>


    char* get_time();
  11. Replies
    15
    Views
    1,746

    No I have included that file

    No I have included that file
  12. Replies
    15
    Views
    1,746

    Ok Ive tried using malloc() but I now get an...

    Ok Ive tried using malloc() but I now get an error saying "invalid conversion from void* to char* "
  13. Replies
    15
    Views
    1,746

    Sorry guys but Im still not getting any success,...

    Sorry guys but Im still not getting any success, Ive tried declaring buffer as a char[30] but main() just prints out garbage now.
  14. Replies
    15
    Views
    1,746

    So should I define buffer as char[30] ?

    So should I define buffer as char[30] ?
  15. Replies
    15
    Views
    1,746

    Ok, Im really new to this, so can you give me...

    Ok, Im really new to this, so can you give me some tips on how to solve my problem?
    Cheers
  16. Replies
    15
    Views
    1,746

    Ok, so how can I get round this problem? Im...

    Ok, so how can I get round this problem? Im obviously trying to display the current time.
    Cheers
  17. Replies
    15
    Views
    1,746

    Returning strings help

    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();
Results 1 to 17 of 17