RE: [Dev-C++] making compatable dlls
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Andres R. <lo...@ho...> - 2002-08-13 20:05:22
|
HellO! > sorry if this question has already been answered somewhere, > I think it is possible, as long as you do not use C++ (objective C) There is incompatibility amongst C++ compilers. But if you use plain C code, you minght be able to produce dll's that work with MSVC. > is there a way to use the dll's/lib's produced by DevCpp with Visual > C++? in other words, can i use DevCpp for the dll's i produce at work > and have others link to them with VC++? when i try (in VC++) to link to > the dll 'libmydll.a' (created by DevCpp) it can't find any of the > externals. i do notice there is a file 'libmydll.def' file made by > DevCpp which seems to have export information in it, but i don't know > how to use it (or if i can). > > the method i'm using (in VC++) to try to compile against the dll is: > import headers > link against lib file (libmydll.a) > is this the right method? MSVC needs .lib files, not .a files. I think there is some tools included with MSVC, that are able to produce .lib files out of dll's. I currently so not know, what tools are, but I think they are similar to same GCC tools. > any help would be greatly appreciated. if that can't be done, how do i > set up DevCpp to use the Visual C++ compiler? > > thanks, > alvin You welcome.. A. |