[antlr-interest] Antlr embedded in c++ dll... Token Type Export

nicolas.felix at digitech.fr nicolas.felix at digitech.fr
Wed Aug 24 01:48:30 PDT 2005


Hi,
I am using Antlr in C++ dll.
I would like to export de ParserType generated like this.

#ifdef __cplusplus
struct CUSTOM_API DigiladParserTokenTypes {
#endif
    enum {
        EOF_ = 1,
        ABS_OP = 4,
        ENT_OP = 5,
    ...
        }
    };
#ifdef __cplusplus
};

My question is how (and where) I define the symbol CUSTOM_API to make 
the enum visible out of my librairy.

Or may I do this in a different way.

Thanks for your (coming) answers,
-- 
Miaou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nicolas.felix.vcf
Type: text/x-vcard
Size: 272 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20050824/8b88c0aa/nicolas.felix.vcf


More information about the antlr-interest mailing list