Trust that is correct title?
I've reached the point where a compiling error is now referencing an .h custom library which has me baffled for now. I'm not familiar yet with what is happening with the error messages in the compiler regarding a library.
Anyway here's a contracted description.
Instructions with the library are to add a line to the 'int main' function thus:
Code: Select all
psession* mysession;
There is a struct in the library:
Code: Select all
typedef struct { blah blah blah } psession;
Now, I have a function that uses mysession so I figured that the psession* mysession should be in that function (all examples supplied with the library use 'main')
That threw up an error during compiling about undefined references in the library.
Putting it back in 'main' then only threw up one error, 'mysession' undeclared, in my code 'function'.
Now, I'm not sure how to declare it. I've tried finding help references through the 'net regarding
Code: Select all
blah* blah2
None of the examples supplied with the library use anything but a code sample using 'int main' only.
There are executables of each example and the corresponding .c file to go with it.
Interestingly trying to compile an example .c file threw up just such a first error regarding undefined referencing to the library call functions (i.e. functions in library, not in the code)???
Yet the example executables work?
Anyone any ideas from this cryptic clue puzzle?