Hi,
ahm, I'm trying to make dll that will have 5 simple functions.
For example bool GetHTTPResponse(string url, string *buffer);
So, my DLL includes curl DLL, that includes 3 anoother libraries.
I just created simple function with name GetHTTPResponse, here is the source:
{
cout << "Test" << endl;
return true;
}
I compiled it, and these files were created: request.dll, librequest.a.
So, with my previous experiences I created new project (in Dev-Cpp) with name "runner".
I included "dll.h" and in the project options, I added this library "librequest.a". Then I compiled it, and everything went ok.
But now, there is the real problem, I need to make library to use in Delphi. But when I try to compile project (still in C++) without librequest.a, I receive this message: " [Linker error] undefined reference to `_imp___Z15GetHTTPResponseSsPSs' ".
Please, can you give me some solution, how to create dll, that won't need lib***.a, because I need to use it in Delphi.
And just one question, I know how to load some simple function from Dll in Delphi, but how can I load function with arguments...