Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Please Help! Collapse All
Subject Author Date
Wu Yunpeng Feb 28, 2006 - 11:58 PM

I have same macro definitions in two libraries,how to deal with the name conflict? thanks!

Technical Support Mar 1, 2006 - 3:16 AM

The possible options are:

1) Modify the source code of on of your two libraries. Simply rename the macro symbol(s). This is the easiest way.

2) Carefully include headers from both libraries in your project. Each source file which includes headers from one library should not include conflicting headers from another library and vice versa.

3) If both libraries are using their conflicting macro definitions only in their source files and never in their header files, then you can ignore the conflict. Simply define and use your own macro symbols with unique names which have meaning of macro definitions from both libraries.