By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,261 Members | 1,325 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,261 IT Pros & Developers. It's quick & easy.

implib for mingw

P: n/a
Sorry by my previous post.
How to create implib (.a) for mingw compiler (win2000) from exist, compiled
by borland - shared library (.dll). I need definition file (.def) for
dlltool program from mingw and then should create implib. But i can't create
correct def. file. I Try using pexport, implib, nm, objectdump programs
without result. Definition generated by pexport look's somthing like that:

@%BasicArray$c%@clazzInfo$qv
@%BasicArray$c%@clone$qp23acdk@lang@sys@Allocator

- and dlltool notify syntax error.
Paweł Stępień
Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"Pawel Stępien" <thwei_(no)real(spam)@go2.pl> wrote in message
news:br**********@news.telbank.pl...
Sorry by my previous post.
How to create implib (.a) for mingw compiler (win2000) from exist, compiled
by borland - shared library (.dll). I need definition file (.def) for
dlltool program from mingw and then should create implib. But i can't create
correct def. file. I Try using pexport, implib, nm, objectdump programs
without result. Definition generated by pexport look's somthing like that:

@%BasicArray$c%@clazzInfo$qv
@%BasicArray$c%@clone$qp23acdk@lang@sys@Allocator

- and dlltool notify syntax error.
Paweł Stępień


Hey that's offtopic in this newsgroup.
We only discuss standard C++ in this NG.
Probably try some Microsoft NG at msnews.microsoft.com.
Jul 22 '05 #2

P: n/a
Tom
"Pawel Stępien" <thwei_(no)real(spam)@go2.pl> wrote:
Sorry by my previous post.
How to create implib (.a) for mingw compiler (win2000) from exist, compiled
by borland - shared library (.dll). I need definition file (.def) for
dlltool program from mingw and then should create implib. But i can't create
correct def. file. I Try using pexport, implib, nm, objectdump programs
without result. Definition generated by pexport look's somthing like that:

@%BasicArray$c%@clazzInfo$qv
@%BasicArray$c%@clone$qp23acdk@lang@sys@Allocator

- and dlltool notify syntax error.
Paweł Stępień


<OT/> Don't know if you can do this or not. But your best bet for
getting help on this question is to go to the minGW website
(www.mingw.org) and asking for help on the mailing list there. </OT>

Best regards,

Tom
Jul 22 '05 #3

P: n/a

"Pawel Stępien" <thwei_(no)real(spam)@go2.pl> wrote in message
news:br**********@news.telbank.pl...
Sorry by my previous post.
How to create implib (.a) for mingw compiler (win2000) from exist, compiled by borland - shared library (.dll). I need definition file (.def) for
dlltool program from mingw and then should create implib. But i can't create correct def. file. I Try using pexport, implib, nm, objectdump programs
without result. Definition generated by pexport look's somthing like that:

@%BasicArray$c%@clazzInfo$qv
@%BasicArray$c%@clone$qp23acdk@lang@sys@Allocator

- and dlltool notify syntax error.
Paweł Stępień


Since you are using Windows, learn to use LoadLibrary/GetProcAddress to call
your DLL functions instead of mucking around with implib, def files, and all
of that other junk.
Jul 22 '05 #4

P: n/a
In article <br**********@news.telbank.pl>, "Pawel Stępien" <thwei_(no)
real(spam)@go2.pl> says...
Sorry by my previous post.
How to create implib (.a) for mingw compiler (win2000) from exist, compiled
by borland - shared library (.dll). I need definition file (.def) for
dlltool program from mingw and then should create implib. But i can't create
correct def. file. I Try using pexport, implib, nm, objectdump programs
without result. Definition generated by pexport look's somthing like that:


Assuming you could make this work, it almost certainly would not do you
any good. The names you've given look like they're for member
functions, and the chances of Borland and gcc using compatible calling
conventions for member functions are nearly nil.

If you want to use a DLL across compilers, you'll want to use something
like the stdcall calling convention. If you want to create objects that
are accessible across compilers, you're probably looking at using COM
(which probably isn't worth the trouble).

--
Later,
Jerry.

The universe is a figment of its own imagination.
Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.