🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #1339

[Q] Mac equivalent of __declspec (dllimport)

#1339
From: Peter Teeson
Date: Wed, 08 Nov 2000 00:00
28 lines
1507 bytes
Using Mac CW Pro 6 I'm porting some C++ from Windows and have run into 
something I don't understand. There are several pieces of code of the 
form:

template class _declspec (dllimport) Foo<sometype>;

for example

template class _declspec (dllimport) vector<float>;

Clearly this is a specialisation for float vectors.
However on the Mac this gives a compilation error

Error   : illegal use of incomplete struct/union/class ....

Removing the _declspec (dllimport) gets a clean compile.
I've looked up the __declspec(arg) and understand how it's used.

So what is the Mac equivalent of the dllimport argument?

TIA for your help


Peter

-- 
"Developing quality software requires a great deal of effort
over a long period of time." Doug Schmidt - C++ Report May 1996
Technical Details
Message-ID: <pteeson-8AD390.12082008112000@news1.on.sympatico.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,a1b3993d7bfe04a6,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,a1b3993d7bfe04a6,start
X-Google-Attributes: gidf635e,public
From: Peter Teeson <pteeson@sympatico.ca>
Subject: [Q] Mac equivalent of __declspec (dllimport)
Date: 2000/11/08
Message-ID: <pteeson-8AD390.12082008112000@news1.on.sympatico.ca>
X-Deja-AN: 691266120
X-Trace: news20.bellglobal.com 973703200 64.228.32.38 (Wed, 08 Nov 2000 12:06:40 EST)
Organization: General Consulting & Research Inc.
User-Agent: MT-NewsWatcher/3.0 (PPC)
NNTP-Posting-Date: Wed, 08 Nov 2000 12:06:40 EST
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac