Search:

Type: Posts; User: sniper83

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,487

    I have found out that the problem might not be...

    I have found out that the problem might not be because the file cannot be found because other methods in the files can be used.. The problem consist also in functions in the same file (it cannot load...
  2. Replies
    4
    Views
    1,487

    Okay i have a makefile that in this case might...

    Okay i have a makefile that in this case might look like:


    objects = main.o theOtherfile.o

    edit : $(objects)
    cc -lm -o GB-Program $(objects)

    main.o : globalVariables.h theOtherfile.h...
  3. Replies
    4
    Views
    1,487

    Use methods from other C-files

    Hi..

    This question might sound silly, but I am confused and stressed big time..

    I need to acces some functions from another c-file I have.

    Ex. main.c


    #include "otherFile.h" // Or how...
  4. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    Of cause not.. Should have been void...

    Of cause not..
    Should have been

    void RecogniseWordInSentence(struct sentencestruct ........){....}

    WOW.. I cant scribe * s s in one word... :S Okay "........" means *ass minus the a..
    EDIT:...
  5. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    Okay I might have found the problem, but why..?!...

    Okay I might have found the problem, but why..?!

    I have changed a bit...

    c-file:

    void RecogniseWordInSentence(struct sentencestruct ........) {...}

    if I define it in the header like this:
  6. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    Once again I thought I had the error but...

    Once again I thought I had the error but appertently not.. :(
  7. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    The two messages is alike and thats right, i only...

    The two messages is alike and thats right, i only posted the receiveMsgSpeechRecognition-method in file: speechRecognition.c.. Just outcomment the other one..
    ..... DAMN ME....... The most obvious...
  8. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    And the makefile..

    And the makefile..
  9. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    Okay.. Now I have seperated it.. Just run make,...

    Okay.. Now I have seperated it.. Just run make, and you will see the problem.. EDIT: Cannot upload the makefile, but I uploads it in a second in makefile.h. Just erase the .h and run it.. Orelse the...
  10. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    It seriously a lot of code.. And alone the two...

    It seriously a lot of code.. And alone the two files we talk about is around 3000-4000 lines.. I tries to seperate the problem in two c-files wih only the nessasary methods and their headers and...
  11. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    NO.. Maybe I was a litte fast.. The makefile just...

    NO.. Maybe I was a litte fast.. The makefile just make it seem it was not there anymore.. It still exists.. :/
    Help will be appresiated..

    btw: All the extern references to the variables in the...
  12. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    Thanks alot... But I have had no problems of the...

    Thanks alot... But I have had no problems of the global variables.. :S Strange.. But I just included the global.h in all the files and now the other problem dissapered as well..

    Thanks you all.....
  13. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    It seem that I can make a struct.h and put all...

    It seem that I can make a struct.h and put all the structs in it, and then include this one in both c-files where i use them..

    But now I get another error due to these. It complains about this...
  14. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    I know i has no meaning, but if its not defined...

    I know i has no meaning, but if its not defined as en extern ressource then it cannot refference it.. ;)

    And no i is defined in global.h which is compiled together and all other variables in it is...
  15. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    It don't seem to work.. in the beginning of the...

    It don't seem to work.. in the beginning of the file is written:

    Header:


    // struct to sentencedata
    struct sentencestruct {
    int numberOfSentences;
    char *sentenceArr[10000];
    };
  16. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    I have done that.. But i might not have written...

    I have done that.. But i might not have written extern struct ... (like other extern variables is defined) in the beginning, now you mention it.. I'll try it out right away..
  17. Thread: Struct error

    by sniper83
    Replies
    20
    Views
    2,873

    Struct error

    I'm new in structs so this question might sound silly, but I cannot see the problem:

    I'm defining a struct in the header. This is the struct:

    // struct to sentencedata
    struct sentencestruct {...
  18. Thread: fopen problem

    by sniper83
    Replies
    6
    Views
    1,357

    Thanks, god observed.. Copy/paste problem.. ...

    Thanks, god observed..

    Copy/paste problem.. What i wanted was not exactly that but simply:


    FILE *persondetection = NULL;
    strcat(loadDir,"personscan.txt"); EDIT
    while(1) {...
  19. Thread: fopen problem

    by sniper83
    Replies
    6
    Views
    1,357

    Damn.. Ofcause... Good observed.. And I have...

    Damn.. Ofcause... Good observed.. And I have focused to clean the used file, and releasing the file.. I have not even seen the strcat command.. I must have stared me bblind of that one..

    Thanks a...
  20. Thread: fopen problem

    by sniper83
    Replies
    6
    Views
    1,357

    Okay.. Now I have come a litte closer to the...

    Okay.. Now I have come a litte closer to the problem.. It happens whenever it is open the file the second time. eventhough it has not changed since last opening.. It seems like the file is still...
  21. Thread: fopen problem

    by sniper83
    Replies
    6
    Views
    1,357

    fopen problem

    Hi..

    I am trying to use a thread to continuersly read data from a file while another process write data to the file. It is not important that the same data is read two times before changed, or...
  22. Replies
    9
    Views
    1,645

    Now I sure love the method.. Thanks big time...

    Now I sure love the method.. Thanks big time kicking my ass for that comment about crap... Surely a super nice method.. :)
  23. Replies
    9
    Views
    1,645

    You are right.. Sorry, I take it back.. ;)

    You are right.. Sorry, I take it back.. ;)
  24. Replies
    9
    Views
    1,645

    Damn.. A crap function.. It looks like hell now.....

    Damn.. A crap function.. It looks like hell now.. I'm glad i made a backup before running it.. :S Cannot recommend this method for anyony.. :(
  25. Replies
    9
    Views
    1,645

    Indent there it was... :D

    Indent there it was... :D
Results 1 to 25 of 46
Page 1 of 2 1 2