User forums > Help
Cannot find -ldxerr when linking
TwoD:
Which link? If you meant the devpak I can upload it somewhere as soon as I get my own computer online again.
dosboot:
It's ok, the devpak download is working now. I'll have to dust off my memory of all this def/lib business and play with it over the weekend. I can't find any info about the devpak that explains what the creators did and why it was necessary. If you figured it out I would be interested in learning. You also said that much of this stuff is similar to what is laid out in tutorials here, can you point me to the tutorials you are talking about?
TwoD:
I was thinking about this FAQ/tutorial: http://www.mingw.org/mingwfaq.shtml#faq-msvcdll
Start reading from "The other way is to produce the .a files for GCC."
I didn't get the reimp tool to work with my .libs (as some won't). But creating a plain text .def from the original DLL import .lib with pexports (I think I had to download it separately), manually edit the file due to different naming conventions in GCC and MSVC and then use i586-mingw32mscv-dlltool (or was it just "dlltool", or maybe both worked, sorry I don't remember and my own computer is still not up) on the .def produced a usable .a file for my DLL.
Then I set the linker search folders in Code::blocks to include the dir where the .a file was, and also set it to link to my .a file (without the file extension), as usual. Be careful if you have both a .lib and .a with the same name as I think it could confuse the linker as I think it can actually link with .libs in some cases (it's mentioned in the FAQ somewhere but it seems a bit fuzzy).
Navigation
[0] Message Index
[*] Previous page
Go to full version