Re: declspec?

"Alen Ladavac" <[email protected]> Fri, 7 Jan 2005 10:37:54 +0100
Newsgroups gmane.games.devel.windows
Message-ID <015601c4f49c$92aa3400$6400a8c0@elrond>
Those are only for dlls, not for static libraries. Static libraries don't
need any special declarations. What exactly does the linker say?

Alen

----- Original Message -----
From: "Brett Bibby" <[email protected]>
To: <[email protected]>
Sent: Friday, January 07, 2005 2:24 AM
Subject: [GD-Windows] declspec?


> Can someone explain to me when and how to use the __declspec(dllimport)
and
> __declspec(dllexport) specifiers?
>
> We have a few libraries that are statically linked to the game.  In
> CodeWarrior this has always worked.  We tried to build a MSVC project and
> the linker complains.  Only when we put __declspec(dllexport) in the class
> declarations will it compile.  I checked the MSDN doc and it's not very
> clear what's needed for static libraries.  This must be a basic thing I
> guess, but I have always used CodeWariror and never seen this kind of
> problem.
>
> Cheers,
> -bb
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Gamedevlists-windows mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=555
>



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555