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...
Type: Posts; User: sniper83
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...
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...
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...
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:...
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:
Once again I thought I had the error but appertently not.. :(
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...
And the makefile..
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...
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...
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...
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.....
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...
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...
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];
};
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..
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 {...
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) {...
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...
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...
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...
Now I sure love the method.. Thanks big time kicking my ass for that comment about crap... Surely a super nice method.. :)
You are right.. Sorry, I take it back.. ;)
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.. :(
Indent there it was... :D