sanshelly / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

Duplicate declaration of common types and functions in USAdditions, USGlobals. #144

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Generate proxies for more than one web service and include them into project
2. Leave only single copy of each NSDate+XXX, USAdditions, USGlobals and xdn 
files.
3. Import headers of all services in a single implementation file for usage.
3. Try to build

What is the expected output?
Successful build

What do you see instead?
Error saying "Duplicate declaration..." comes during build

What version of the product are you using? On what operating system?
wsdl2Objc 0.6 on. XCode 4.02

Simple solution is to include ifndef into the headers, like:

#ifndef _US_ADDITIONS_
#define _US_ADDITIONS_
  // generated code
#endif 

#ifndef _US_GLOBALS_
#define _US_GLOBALS_
 // generated code
#endif 

Regards,
Victor

Original issue reported on code.google.com by nakvic on 7 Jun 2011 at 8:59