Re: [Dev-C++] [HELP] I can't create and use a DLL - It's OK !
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2004-01-06 21:15:04
|
Gil wrote: > It's fine. I'd just try to add -DBUILDING_DLL=1 for C++ compiler and it > works. > Just one thing, in the project option window, the -DBUILDING_DLL=1 is > added automatically by DevCPP when you make a DLL but into the compiler > panel and not into the C++ compiler one. > I think that is a bug if you choose to generate a C++ DLL not ? Well, it depends. It is a bug in a way, but generally it isn't, as different projects use different macros for building themselves as DLLs, so Dev-C++ probably "thinks" that you will look at the compiler settings anyway and adjust them for your needs. For example, I know of one project, which adds this: -DBUILD_DYNAMIC when building as a DLL. So Dev-C++ merely gives you a possible choice, but most often people use what they prefer. However, if you look at it strictly, yes, it is a bug. -- Greetings, Balázs |