How do I include a include file which is in a different folder and the .c file where I am calling this file is in a different folder?
Lets say I want to include sample.h file which is in a different folder.
is it like #include "c:\difffolder\ sample.h" ?
Is it same syntax for both windows and unix based compiler?
Please advise.
User Profile
Collapse
-
Include file in a different location
-
Thank you very much Rick and Cats.
To see if this works on a 64 bit machine, I ran the .exe file in a 64 bit machine. It gives me the same error.
The reason could be that this executable was created in a 32 bit machine. Since the 64 bit machine did nt have VC++, I was nt able to create the exe in that machine.
Do you think its worth installing VC++ in the 64 bit machine and try executing this file. That... -
Thank you very much for your reply.
So, is this the limitation of malloc or the computer? or VC++?
What do you think?...Leave a comment:
-
Each of the number is a node and it carries vital information (when decoded). Given any two nodes, I should connect those nodes by finding the "in-between" link nodes (which are again in these 580M numbers).
I cannot use SQL or Oracle as these are not supported by the client....Leave a comment:
-
malloc problem
Hi All,
I am trying to use malloc function to allocate memory for 580,000,000 numbers (long int).
valid = 580000000;
infoBuffer = malloc((valid)* sizeof(long));
if(!infoBuffer)
printf("Allocat ing memory failed\n");
else
printf("Success ful memory allocation\n");
I have all these numbers in a file.
I am using my...
No activity results to display
Show More
Leave a comment: