|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows - DLL problem
Hi, I'm trying to compile some foreign code and get the following error
messages. What's the problem with dllimport here?
/*
* Implementation of e4_CommonUniqueID.
*/
e4_CommonUniqueID::e4_CommonUniqueID() :
^
e4id.cpp(39) : Error: initializer or function body for dllimport not
allowed
e4_CommonUniqueID::e4_CommonUniqueID() : ID(-1), SP(0) {}
e4_CommonUniqueID::e4_CommonUniqueID(const e4_CommonUniqueID &referrer)
:
^
e4id.cpp(42) : Error: initializer or function body for dllimport not
allowed
: ID(referrer.ID),
SP(referrer.SP)
{
}
e4_CommonUniqueID::e4_CommonUniqueID(int uid, int usp)
:
^
e4id.cpp(48) : Error: initializer or function body for dllimport not
allowed
: ID(uid),
SP(usp)
{
}
e4_CommonUniqueID &
e4_CommonUniqueID::operator=(const e4_CommonUniqueID &referrer)
{
^
e4id.cpp(55) : Error: initializer or function body for dllimport not
allowed
{
ID = referrer.ID;
SP = referrer.SP;
return *this;
}
e4_CommonUniqueID::~e4_CommonUniqueID() {}
^
e4id.cpp(62) : Error: initializer or function body for dllimport not
allowed
--
Robert M. Münch
Management & IT Freelancer
http://www.robertmuench.de
Nov 06 2004
Importing a function means referring to that function in some other DLL. Therefore, providing a definition of an import (rather than just a declaration) must be an error. "Robert M. Münch" <robert.muench robertmuench.de> wrote in message news:opsg1yp5h5heztw6 news.digitalmars.com... Nov 07 2004
On Sun, 7 Nov 2004 19:51:48 -0800, Walter <newshound digitalmars.com> wrote:Importing a function means referring to that function in some other DLL. Therefore, providing a definition of an import (rather than just a declaration) must be an error. Nov 09 2004
"Robert M. Münch" <robert.muench robertmuench.de> wrote in message news:opsg7e7hmrheztw6 news.digitalmars.com...BTW: I try to post into the c++.windows group which fails. Is this group no longer existant? Nov 10 2004
On Wed, 10 Nov 2004 17:25:09 -0800, Walter <newshound digitalmars.com> wrote:BTW: I try to post into the c++.windows group which fails. Is this group no longer existant? Nov 11 2004
|