473,397 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

can we export a class using a .def file? w/o using __declspec

hi all,
i have a problem: i have two core procssing libraries which are used by
my algorithms library. now all three libs are to be converted into
dlls. but i cant use __declspec since tht would make my code microsoft
specific and would take lot of effort to add code to keep it platform
independent. so the only choice i have is to use a .def file to
specific which classes get exported.

now i could not find any literature on how to add the class names in
the EXPORTS section of the .def file. can u please tell me how i can do
it?

any help will be appreciated. thank u in advance!

regards,
siddharth

Sep 19 '06 #1
1 2349
siddharth wrote:
hi all,
i have a problem: i have two core procssing libraries which are used by
my algorithms library. now all three libs are to be converted into
dlls. but i cant use __declspec since tht would make my code microsoft
specific and would take lot of effort to add code to keep it platform
independent. so the only choice i have is to use a .def file to
specific which classes get exported.

now i could not find any literature on how to add the class names in
the EXPORTS section of the .def file. can u please tell me how i can do
it?

any help will be appreciated. thank u in advance!
You can ask on a Microsoft group. See the list in this FAQ:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Sep 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ben | last post by:
Hi. I am currently trying to move compilers (VC6 -> VC7 in fact) and I'm having a few problems (so far exclusively to do with better standard conformance). Anyhow, whilst rebuilding a...
1
by: ernesto | last post by:
Hi everybody: I am writing this very small test class using g++ and mingw: #ifdef DLL #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT __declspec(dllimport) #endif
1
by: ernesto | last post by:
Hi, everybody: I created this very small class on Windos32, mingw: main.h ------ #ifdef DLL #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT __declspec(dllimport)
3
by: Edward Diener | last post by:
I want to share a __nogc classes between different assemblies. For __gc classes, one only needs to declare the class public in order to be able to do this. Is there a way to share a __nogc class so...
0
by: Seko | last post by:
Hi, I'm writing a simple, non-MFC DLL, and I'm trying to export a class with __declspec(dllexport), but the compiler is giving warnings because of member variables whose type is CString. It...
5
by: Felix I. Wyss | last post by:
Good Afternoon, I recently noticed that some very simple methods of a template declared and used in a DLL library get inlined when used by the DLL itself, but not by other DLLs and EXEs. After...
3
by: amirbehzadan | last post by:
Hello, I am writing some C++ classes and want to export them as .dll files so other users can import them and use the methods I have provided in those classes. I have two types of classes :...
1
by: Allen | last post by:
I write 3 classes: class CRPCParaPacker { private: CRPCInParaPacker inPack; CRPCOutParaPacker outPack; }; I want to export only CRPCParaPacker class. So in the header file of
10
by: =?Utf-8?B?UGF0cmljayBXZXN0ZXJob2Zm?= | last post by:
Hello, I'm currently working on a small DLL that will be used as an extension to a working application. It is required that the DLL has only one export named "C16_DLLCALL". So I started creating...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.