2
2DevOrNot2Dev
Hi there,
I'm not sure if this is a C question or a compiler specific question.
However since the issue seems to be occuring on all compilers I try it
on I think it may be a language question.
Anyways to the point...
I have 2 seperate sources
main.c and module.c
main is our main application and module.c compiles to a dynamically
linked library
main has a circular buffer defined in the global scope, this is
intended to be a sort of scratchpad for communication between main and
module.
The problem I am having occurs at runtime. When I run the
application, the library cannot find the circular buffer created by
main.
I'm not sure it's relevant but here is the code...
module.c
extern circular_buffer service_result_buffer;
main.c
circular_buffer service_result_buffer;
Again like I said, I just can't see any reason that module can't see
the buffer in main, any help would be appreciated.
Thanks in advance!
I'm not sure if this is a C question or a compiler specific question.
However since the issue seems to be occuring on all compilers I try it
on I think it may be a language question.
Anyways to the point...
I have 2 seperate sources
main.c and module.c
main is our main application and module.c compiles to a dynamically
linked library
main has a circular buffer defined in the global scope, this is
intended to be a sort of scratchpad for communication between main and
module.
The problem I am having occurs at runtime. When I run the
application, the library cannot find the circular buffer created by
main.
I'm not sure it's relevant but here is the code...
module.c
extern circular_buffer service_result_buffer;
main.c
circular_buffer service_result_buffer;
Again like I said, I just can't see any reason that module can't see
the buffer in main, any help would be appreciated.
Thanks in advance!