|
From: Ramana K. <ra...@my...> - 2001-02-18 05:52:49
|
Using the M$ Visual C libs just like normal (.a) libs sometimes works. Or if you can get the original files (.cpp I think) you can recompile the library to be a .a. In the Project options, I don't think you need a -l. Try using the Browse... button to get the files, but you have to convert it back to 8.3(MSDOS) format. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Andrew Holden Sent: Sunday, 18 February 2001 8:15 AM To: dev...@li... Subject: Re: [Dev-C++] Libraries All Windows dynamic libs have a .dll suffix, even if they're created using DEV-C++. DEV-C++ has a dll project that can get you started. I haven't done any dlls yet, so I can't help much past that. As for static libs, the DEV-C++ gui doesn't support them. However, the command line tools do. I have attached a makefile I wrote to build a static lib. Put DEV-C++'s bin directory in your path, tweak the source file names and library name, and type "make" at the command prompt. As for file names, the makefile should be names "makefile" not "makefile.win" and the library should be named "lib______.a" As for libraries you got from other sources, DEV-C++ uses a different format static library from M$ Visual C and, as far as I know, there is no way. It should be possible to get the dlls to work though. Again, I haven't tried, so I can't list the steps. There are several .def files in the DEV-C++ lib directory. I think these fit in somehow. In general, you add libraries by going into project options and, under "further object files or linker options," type -l______ -l______ (no spaces after the l). Replace the blanks with the names of the libraries. As an example, suppose I have the libraries libfoo.a and bar.dll. I would put "-lfoo -lbar" Andrew Holden At 11:56 AM 2/17/2001 +0100, you wrote: >I just started using Dev-C++... >Shouldn't static libs have the .a suffix and dynamic libs have .so, like >under Linux? > >How can I create static libs with DEV-C++? And dynamic libs? > >How can I use a dynamic library for VisualC++ vith DEV-C++ if I can't >compile them? I just have the dll, the headers, and the impoirt library? >And a static lib? > >Thanx in advance. > >Marco Iannaccone mar...@ti... >ICQ: 18748121 MetalCoder > >"What is real? How do you define real? If you're talking about your >senses, what you feel, taste, smell, or see, then all you're talking about >are electrical signals interpreted by your brain." > Morpheus - The Matrix > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |