Operating System - Linux
1748034 Members
4969 Online
108757 Solutions
New Discussion юеВ

Re: Building Mozilla LDAP SDK

 
Steve_The_King
Frequent Advisor

Re: Building Mozilla LDAP SDK

Thanks for your immediate responses.
I am attaching prtypes.h.

I tried building the code changing export to dllexport where we have #defined (XP_MAC) line 150.

The build goes fine but few warnings.
warning : __declspec() ignored if -Bhidden/-Bhidden_def not used.

Is it O.K to build the code by changing export to dllexport or can there be some consequences.
Dennis Handly
Acclaimed Contributor

Re: Building Mozilla LDAP SDK

>I am attaching prtypes.h.

It appears you changed export to dllexport before you attached it?

>I tried building the code changing export to dllexport where we have #defined (XP_MAC) line 150.

Ah, there is a bug in cpp.ansi where I confused the #if on line 80 with #elif on line 150.

>Is it O.K to build the code by changing export to dllexport or can there be some consequences.

Well export isn't recognized. I don't know if MF C changed after dllexport was implemented? The only places google finds is is in some comments on a MS web page.
And due to the warning they are all ignored.
You could compile with -Bhidden or try to use as is.

You can also fix your problem by compiling with -Dexport=dllexport.
Steve_The_King
Frequent Advisor

Re: Building Mozilla LDAP SDK

Thanks for all the help and guidance you are providing :-)


I jus want to make clear that shall we define a new variable Dexport and then build it our code using this flag.

What if I continue using dllexport instead of export ?

Dennis Handly
Acclaimed Contributor

Re: Building Mozilla LDAP SDK

>I just want to make clear that shall we define a new variable Dexport and then build it our code using this flag.

I was suggesting you use a command line -D to rename it. Of course if you have a variable with the name "export" you would have problems.

>What if I continue using dllexport instead of export?

Whatever is easier.
Steve_The_King
Frequent Advisor

Re: Building Mozilla LDAP SDK

Thanks :-)

I was able to continue with my build for the time being.
Dennis Handly
Acclaimed Contributor

Re: Building Mozilla LDAP SDK

If you have gotten answers to your questions you should assign points and close the thread. Please read:
http://forums12.itrc.hp.com/service/forums/helptips.do?#33