[openamq-dev] OpenAMQ and Visual Studio 2005

Jörg Fischer joerg.fischer at biologie.uni-freiburg.de
Fri Feb 15 12:01:30 CET 2008


Hi Martin,

now I'm a bit confused. I use __declspec(dllexport). How can I use the 
classes of a dll if
the dll doesn't export them?

Jörg

Martin Sustrik schrieb:
> Jorg,
>
> Yes, it's either __declspec (dllexport) or, optionally, you can specify 
> symbols to export in .def file.
>
> Martin
>
> Jörg Fischer wrote:
>   
>> Hi Martin,
>>
>> I've googled around and searched the project properties of Visual Studio,
>> but I didn't find out where to specify which symbols should be exported.
>> Do you mean the __declspec(dllexport) declaration?
>>
>> Jörg
>>
>> Martin Sustrik schrieb:
>>   
>>     
>>> Hi Jorg,
>>>
>>> I am not 100% sure, however, I believe that if you build the DLL with 
>>> static CRT without exporting CRT symbols from the DLL, you should be 
>>> able to link it with a main that uses dynamic CRT.
>>>
>>> Martin
>>>
>>> Jörg Fischer wrote:
>>>   
>>>     
>>>       
>>>> Hi Martin,
>>>>
>>>> Currently I try, according to your advice, to build a dll with static 
>>>> CRT for my project that handles all the
>>>> OpenAMQ-related stuff. Later I want to use this dll from my main 
>>>> application, which has to use DLL CRT.
>>>> In one of your mails you told me that...
>>>>   
>>>>     
>>>>       
>>>>         
>>>>>> with DLL version of CRT rather than with static CRT. Note that OpenAMQ 
>>>>>> does not support DLL CRT.
>>>>>>       
>>>>>>         
>>>>>>           
>>>>>>             
>>>> This sounds to me like I can't use OpenAMQ at all from my main 
>>>> application. Am I right?
>>>>
>>>> Regards,
>>>>
>>>> Jörg
>>>> _______________________________________________
>>>> openamq-dev mailing list
>>>> openamq-dev at lists.openamq.org
>>>> http://lists.openamq.org/mailman/listinfo/openamq-dev
>>>>   
>>>>     
>>>>       
>>>>         
>>> _______________________________________________
>>> openamq-dev mailing list
>>> openamq-dev at lists.openamq.org
>>> http://lists.openamq.org/mailman/listinfo/openamq-dev
>>>   
>>>     
>>>       
>>   
>>     
>
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev
>   


-- 

Dipl.-Inf. Joerg Fischer

e-mail: joerg.fischer at biologie.uni-freiburg.de
Tel: +49-761-203-2910

Institute for Biology I        
Albert-Ludwigs University

Hauptstraße 1
79104 Freiburg
Germany 



More information about the openamq-dev mailing list