• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
invalid code compiling in Xcode 2.2, but only in one project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

invalid code compiling in Xcode 2.2, but only in one project


  • Subject: invalid code compiling in Xcode 2.2, but only in one project
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 5 Dec 2005 17:56:16 -0500
  • Organization: Rogue Research

Hi all,

I have both Xcode 2.2 and CodeWarrior 10 versions of my project.  The
following piece of C++ code compiles in my Xcode project but not in my
CW project:

class MyClass
{
public:
	void foo (void* inParam);
	void bar (void);
};

void MyClass::foo (void* inParam)
{
}

void MyClass::bar (void)
{
	foo (""); // error
}

I think CW is right, it should not compile.  Indeed, if I make a fresh
Xcode "C++ tool" project, the code does not compile (error: invalid
conversion from 'const void*' to 'void*').  But it *is* compiling in my
real Xcode project.  In all cases, the file name ends with .cpp

What setting could be influencing this and allowing it to compile?  Here
is the gore:

    /usr/bin/distcc /usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-
trigraphs -fpascal-strings -fasm-blocks -g -O0 -pg -fwritable-strings -
Wreturn-type -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-braces -
Wparentheses -Wunused-function -Wunused-label -Wunused-value -Wunknown-
pragmas -Wshadow -fmessage-length=0 -mtune=G4 -fvisibility=hidden -
fvisibility-inlines-hidden -mfix-and-continue -Wno-deprecated-
declarations -mmacosx-version-min=10.3 -I/Users/sean/RogueSVNWorkingCopy/
brainsight/trunk/build/Brainsight.build/Debug/Frameless.build/
Brainsight.hmap -Wno-#warnings -fpch-preprocess -F/Users/sean/
RogueSVNWorkingCopy/brainsight/trunk/build/Debug -I/Users/sean/
RogueSVNWorkingCopy/brainsight/trunk/build/Debug/include -I/Developer/
SDKs/MacOSX10.3.9.sdk/Developer/Headers/FlatCarbon -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_Advanced\ Classes -I/
Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\ Progress -
I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/Action\
Classes -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/
Appearance\ Classes -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
PowerPlant/trunk/AppleEvent\ Classes -I/Users/sean/RogueSVNWorkingCopy/
3rdParty/PowerPlant/trunk/Array\ Classes -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/Commander\ Classes -I/
Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/Feature\
Classes -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/File
\ and\ Stream\ Classes -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
PowerPlant/trunk/Menu\ Classes -I/Users/sean/RogueSVNWorkingCopy/
3rdParty/PowerPlant/trunk/Pane\ Classes -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/PowerPlant\ Headers -I/
Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/PowerPlant\
Resources -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/PP
\ Precompiled\ Headers -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
PowerPlant/trunk/Standard\ Dialogs -I/Users/sean/RogueSVNWorkingCopy/
3rdParty/PowerPlant/trunk/Support\ Classes -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/Table\ Classes -I/Users/
sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/Utility\ Classes -I/
Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_Advanced\
Classes/Internet\ Classes -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
PowerPlant/trunk/_Advanced\ Classes/Networking\ Classes -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_Advanced\ Classes/Threads
\ Classes -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In
\ Progress/_Carbon\ Events -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
PowerPlant/trunk/_In\ Progress/_Constructor\ Additions -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\ Progress/_Contextual\
Menus -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\
Progress/_Core\ Foundation -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
PowerPlant/trunk/_In\ Progress/_Debugging\ Classes -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\ Progress/_Menu\
Utilities -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In
\ Progress/_Page\ Controller\ Classes -I/Users/sean/RogueSVNWorkingCopy/
3rdParty/PowerPlant/trunk/_In\ Progress/_StuffIt\ Classes -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\ Progress/_Table\
Classes -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\
Progress/_Text\ Classes -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
PowerPlant/trunk/Appearance\ Classes/AM\ Implementations -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/Appearance\ Classes/
Appearance\ Controls -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
PowerPlant/trunk/Appearance\ Classes/Appearance\ Support -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/Appearance\ Classes/GA\
Implementations -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/
trunk/Appearance\ Classes/Grayscale\ Panes -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/Appearance\ Classes/
Grayscale\ Support -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/
trunk/Appearance\ Classes/Std\ Implementations -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_Advanced\ Classes/Internet
\ Classes/Internet\ Message\ Class -I/Users/sean/RogueSVNWorkingCopy/
3rdParty/PowerPlant/trunk/_Advanced\ Classes/Internet\ Classes/Internet\
Protocols -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/
_Advanced\ Classes/Internet\ Classes/Internet\ Utilities -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_Advanced\ Classes/Internet
\ Classes/Simple\ Protocol\ Threads -I/Users/sean/RogueSVNWorkingCopy/
3rdParty/PowerPlant/trunk/_Advanced\ Classes/Networking\ Classes/Generic
\ Network\ Interface -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
PowerPlant/trunk/_Advanced\ Classes/Networking\ Classes/Internal\
Implementation -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/
trunk/_Advanced\ Classes/Networking\ Classes/OpenTransport\
Implementation -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/
trunk/_In\ Progress/_Constructor\ Additions/Outline\ table -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\ Progress/_Debugging\
Classes/Headers -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/
trunk/_In\ Progress/_Debugging\ Classes/Resources -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\ Progress/_Debugging\
Classes/Streams -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/
trunk/_In\ Progress/_Debugging\ Classes/Support -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\ Progress/_Debugging\
Classes/Trees -I/Users/sean/RogueSVNWorkingCopy/3rdParty/PowerPlant/
trunk/_In\ Progress/_Debugging\ Classes/Utilities -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/PowerPlant/trunk/_In\ Progress/_Table\
Classes/_More\ Table\ Classes -I/Users/sean/RogueSVNWorkingCopy/
brainsight/trunk/Source -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
NetCDF/trunk/Debug/include -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
MINC/trunk/Debug/include -I/Users/sean/RogueSVNWorkingCopy/3rdParty/MINC/
trunk/Debug/include/volume_io -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
DCMTK/trunk/Debug/include -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
DCMTK/trunk/Debug/include/dcmdata -I/Users/sean/RogueSVNWorkingCopy/
3rdParty/DCMTK/trunk/Debug/include/dcmimage -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/DCMTK/trunk/Debug/include/dcmimgle -I/Users/
sean/RogueSVNWorkingCopy/3rdParty/DCMTK/trunk/Debug/include/dcmjpeg -I/
Users/sean/RogueSVNWorkingCopy/3rdParty/DCMTK/trunk/Debug/include/dcmnet
-I/Users/sean/RogueSVNWorkingCopy/3rdParty/DCMTK/trunk/Debug/include/
dcmpstat -I/Users/sean/RogueSVNWorkingCopy/3rdParty/DCMTK/trunk/Debug/
include/dcmsign -I/Users/sean/RogueSVNWorkingCopy/3rdParty/DCMTK/trunk/
Debug/include/dcmsr -I/Users/sean/RogueSVNWorkingCopy/3rdParty/DCMTK/
trunk/Debug/include/dcmwlm -I/Users/sean/RogueSVNWorkingCopy/3rdParty/
DCMTK/trunk/Debug/include/imagedb -I/Users/sean/RogueSVNWorkingCopy/
3rdParty/DCMTK/trunk/Debug/include/ofstd -I/Users/sean/
RogueSVNWorkingCopy/3rdParty/Quesa/trunk/Includes -I/Users/sean/
RogueSVNWorkingCopy/brainsight/trunk/build/Brainsight.build/Debug/
Frameless.build/DerivedSources -isysroot /Developer/SDKs/
MacOSX10.3.9.sdk -include /Library/Caches/com.apple.Xcode.501/
SharedPrecompiledHeaders/DebugMach-OPrefix-adyuckkojflecqadsymvnzbzqznx/
DebugMach-OPrefix.pch++ -c /Users/sean/RogueSVNWorkingCopy/brainsight/
trunk/Common/source/TaskAssistants/CTaskStepTable.cpp -o /Users/sean/
RogueSVNWorkingCopy/brainsight/trunk/build/Brainsight.build/Debug/
Frameless.build/Objects-normal/ppc/CTaskStepTable.o

Thanks!

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: invalid code compiling in Xcode 2.2, but only in one project
      • From: "Corey O'Connor" <email@hidden>
  • Prev by Date: Re: proprocessing info.plist files
  • Next by Date: Re: Mysterious error... to a newbie
  • Previous by thread: Re: Mysterious error... to a newbie
  • Next by thread: Re: invalid code compiling in Xcode 2.2, but only in one project
  • Index(es):
    • Date
    • Thread