Problem with exporting class names

Mansoor Peerbhoy mansoor@cybermedia.co.in
Thu Dec 16 22:36:00 GMT 1999


Thanks for that. Yes, it does work, I guess there was an error elsewhere
in my code.

I have another problem,
In Windows, when I write a DLL and I want to export a class name, I say
something like this:

__declspec (dllexport) class XYZ {
...
};

Now I know that I can export ordinary functions from UNIX by placing the
function names in a module definition file. But can I export class names
this way ?

Thanks,

Best regards,
Mansoor Peerbhoy

On Wed, 15 Dec 1999, Martin v. Loewis wrote:

> > But I cannot do this on GCC.
> 
> Why not?
> 
> #include <wchar.h>
> #define XYZ L"Something"
> wchar_t s[] = XYZ;
> 
> compiles for me, on i586-pc-linux-gnu.
> 
> Regards,
> Martin
> 



More information about the Gcc mailing list