[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-26 03:37:53
|
Hi all, I have seen everywhere that the use of dllwrap is deprecated and that we should use gcc -shared to create dlls. However, I cannot find a way to tell Dev-cpp to do that. Putting "gcc -shared" in the dllwrap entry of Tools/Compiler Options/Programs works but the generated linker line is not correct: gcc.exe -shared --output-def ../../../.libs/libgeotiff.def --implib ../../../.libs/libgeotiff.a (objects) -Wl,-output-def libgeotiff.def,-out-implib libgeotiff.a -o ../../../.libs/geotiff.dll The -Wl options should replace the --output-def and --implib and should precede everything. I can't figure out how and from where Dev-cpp adds those options. Besides hacking the Makefile.win directly, I don't how it can be done. Any thoughts? -- Mario B. My Landsat images: http://pages.infinit.net/starged/landsat/home.html |