• 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
I hate xcode for such a bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I hate xcode for such a bugs


  • Subject: I hate xcode for such a bugs
  • From: Шкраблюк Павел <email@hidden>
  • Date: Fri, 9 Oct 2009 15:41:11 +0300
  • Organization: CSO

1. create new project (command line tool)
2. add new cpp file (creating .h for it automatically) and write
   simple class, like that:

   1.h
 struct A
 {
  void a1();
  void a2();
  void a3();
 };

1.cpp
  void A::a1(){}
  void A::a2(){}
  void A::a3(){}

3. include 1.h to main.cpp and create and use some A object, like
   that:

   A a;
   a.a1();
   a.a2();
   a.a3();

4. compile and run
5. everything is ok.
6. comment (or remove) some of A's members in 1.h/cpp and push cmd+b
   and ... you'll get LINKER error! What does it mean? It means that
   it didn't even try to COMPILE main.cpp.

I tried to figure out what happens for about 3 days.
Today I've found solution - set file type of 1.h to 'sourcecode.cpp.h'
(when created automatically it gets 'sourcecode.c.h'); when this is
done everything goes right - I get compiler error.

Sure initially it wasn't such simple project and first of all what the
worst is when you don't get any errors at all. XCode tells you,-
"build succeeded", but program does wrong things, and you go looking
for errors in your code, while you don't find it's not your bug, but
your tool's bug!

 _______________________________________________
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: I hate xcode for such a bugs
      • From: Bill Bumgarner <email@hidden>
    • Re: I hate xcode for such a bugs
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: OCUnit assertion failures not showing up in text editor
  • Next by Date: Re: Xcode 3.2.1 update is available in iPhone OS 3.1.2 SDK
  • Previous by thread: Re: subversion instructions for 3.1.4?
  • Next by thread: Re: I hate xcode for such a bugs
  • Index(es):
    • Date
    • Thread