mr. bean 19 Newbie Poster

Hi

Problem solved.
As stated in an earlier reply from Salem, the libraries used were VC++ compiled and therefor could not be used with MinGW/Dev-C++.
I solved the problem by using a tool to create definition files from the existing dll's.
I then edited the stdcall functions in the definition files. All the stdcall functions in the file were in the form "_name@ordinal". I simply changed it to be just "name".
This would have worked also:
name = _name@ordinal
I then used dlltool to create .a files from the dll's and the definition files, .def.
After this, the linking went OK.

Salem commented: Nice job, and thanks for the summary :) +19
mr. bean 19 Newbie Poster

I've attached the complete logfile here.
I've tried to build in Visual Studio also, but that also gives linker errors.

mr. bean 19 Newbie Poster

Did you tell the linker
- where to find the axutil library
- to actually use the axutil library.

I've told the linker to use axutil.lib in the axis2c\lib together with all the other libs in that directory.

mr. bean 19 Newbie Poster

Hi all.

I'm new to this community and to forums in generel actually.
I make my living coding in primarily C++ but also some other languages if the need comes up.
But prior to my earlier work, my coding is a bit rusty, which is why I've joined this forum, which has already helped me out a few times.

mr. bean 19 Newbie Poster

Hi
I'm building a webservice in axis2c and wanna test it with a client.
I build the skeleton code for the client using the wsdl2c tool in axis.
Now, when I build the solution in Dev-C++, I get a lot of linker errors like the one mentioned in the title:

In function main:
[Linker error] undefined reference to '_imp__axutil_env_create_all'
In function axis2_stub_create_SearchDocs:
[Linker error] undefined reference to '_imp__axutil_error_set_error_number'
[Linker error] undefined reference to '_imp__axutil_error_set_status_code'
etc......

I've been doing a lot of googling and it seems I need some libraries, but can't figure out which ones.
In Dev-C++ I have added all the .lib files from axis2c->lib.
And I have included all the files from the axis2c->include library to the project.
Any help would be appreciated.