I hate xcode for such a bugs
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