Firstly, thanks for reading.
I am in a conundrum, I need to call a data type which is declared in a file that is dynamically created.
I have a H file that is created dynamically from a WSDL file, it contains structure definitions for gSOAP communication from my client to the main server.
I now have to implement a new SOAP API call from within a Library process that uses one of the types in the H file, but the dynamic creation of the H file is after the compilation of the Libraries (which the new call is in).
The Libraries need to be compiled first for the rest of the program to work.
Which creates for me the problem of referencing a data type that is not only not defined, but the file in which it is defined does not exist yet, and I cannot create the file first as it requires the Libraries to compile that section.
1) Is there a way for me to use Extern or something similar to convince the compiler to not report a "incomplete type and cannot be defined" error and compile?
2) If not, do I need to change my build order somewhat?
3) Am I not doing something right to reach such a situation?
Thanks