[cfe-dev] Workaround for #import

via cfe-dev cfe-dev at lists.llvm.org
Fri Mar 23 03:40:45 PDT 2018


Hello everyone,

currently I'm converting some old visual studio projects for the use with 
the clang compiler. Everything was fine, until I hit the following line:
#import <file.tlb> rename("SendMessage", "SendMessage")

Clang stop the work and complained:
error : #import of type library is an unsupported Microsoft feature

I get it - this doesn't work, but is there no workaround or another 
solution for this problem?

Kind regards
Björn

Als GmbH eingetragen im Handelsregister Bad Homburg v.d.H. HRB 9816, 
USt.ID-Nr. DE 114 165 789
Geschäftsführer: Dr. Hiroshi Nakamura, Dr. Robert Plank, Markus Bode, 
Heiko Lampert, Hiroshi Kawamura, Takashi Nagano, Takeshi Fukushima.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180323/8229e3e9/attachment.html>


More information about the cfe-dev mailing list