Talk About Network

Google





Mac > Code warrior for Mac > A two liner tha...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 2148 of 2233
Post > Topic >>

A two liner that won't compile on CW 9.5

by "François Robert" <moc.sysinu@[EMAIL PROTECTED] > Jul 5, 2006 at 02:51 PM

Dear NG

I need to add to a Photoshop plugin a function that takes an std::string 
argument and creates a folder hierarchy using mkdir(). I am starting to 
think this is not doable with CW 9.5 :

Config : I have CW 9.5 + Mac OSX Universal SDK 10.4

Issue : The following two lines will not compile :
#include <fstat.h>
#include <string>

with access paths set to 
{Compiler}MSL/MSL_C (recursive)
{Compiler}MSL/MSL_C++ (recursive)
{Compiler}MSL/MSL_Extras/MSL_Common (recursive)
{OS X Volume}usr/include (not recursive)

Symptom : CW complains that identifier dev_t is redeclared (and gid_t 
etc...)

I have exhausted all the combinations of access path order / #include 
order etc : No matter what, some identifier is redefined or missing or 
some include path is not found.

My question is thus:
What should be the target settings / #include order to compile those two 
lines (which are merely a prerequisite for writing the function I need) 
?

I believe that the problem is much deeper than it seems and that I am 
unwittingly mixing MSL headers with BSD headers and that this is not 
sup****ted by CW (or at least only partially sup****ted). However, I 
cannot figure where this happens and how to avoid it.

Thanks for your help.
_______________________________________________________
François Robert
(to mail me, reverse character order in reply address)
 




 3 Posts in Topic:
A two liner that won't compile on CW 9.5
"François Robert&quo  2006-07-05 14:51:37 
Re: A two liner that won't compile on CW 9.5
David Phillip Oster <o  2006-07-05 16:57:26 
Re: A two liner that won't compile on CW 9.5
"François Robert&quo  2006-07-06 07:13:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 16:31:03 PST 2009.