Re: [Dev-C++] Using gcc -shared instead of dllwrap
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Mario B. <st...@vi...> - 2004-02-27 05:38:36
|
Hi OROSZI, On Thu, 26 Feb 2004 22:23:27 +0100, OROSZI Bal=E1zs = <or...@vp...> wrote: >I read something about the new release of Dev-C++, that it uses new=20 >tools of MinGW, however I haven't tried it yet. Perhaps they switched to= g++ -shared? I don't know. Since v 4.8.4 or so, I d/l only the exe (since the online = update always fail). Anyway, I would be surprised if this mattered. And I have the latest MinGW tools. >Anyway, as for your release, you have to live with dllwrap. Not necessarily, see below... >BTW, g++ -shared is *MUCH* faster (10 to 20 times) and is the right way=20 >of creating DLLs, since almost 3 years. I don't know why didn't the devs= =20 >of Dev-C++ change it... I don't even know if they are monitoring that particular ml (are you, = guys?)... we don't see too many replies from them here. And you're right, the speed is amazing! The only workaround is to let Dev-cpp generate the Makefile.win as usual = and then edit the $(BIN) line in this file as follows: $(BIN): $(LINKOBJ) $(DLLWRAP) -Wl,-output-def,$(DEFFILE) -Wl,-out-implib,$(STATICLIB) = $(LINKOBJ) $(LIBS) -o $(BIN) and then save it under another name and make the project use it. Of course, DLLWRAP=3Dgcc -shared... Bye! -- Mario B. My Landsat images: http://pages.infinit.net/starged/landsat/home.html |