Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 2.2 & Qt toolkit issues



On Nov 30, 2005, at 8:26 AM, david tay wrote:

When building a xcode project created using qmake on MacOS X for both PPC and i386, using the universal 10.4 SDK, I get the following

a. warnings about converting to non-pointer type to 'io_service_t' from NULL

	The line of code reads m_deviceDataPort = NULL;
	where m_deviceDataPort is defined as
	io_service_t		deviceDataPort;

Use IO_OBJECT_NULL, not NULL.

b. warning 'struct XXXXXXX has virtual functions but non-virtual destructor.
The structure XXXXXXX is defined like
interface XXXXXXX {
virtual bool myFunction(myParams);
}

Add a virtual destructor which does nothing. Without a virtual destructor, deleting these objects may leak in some cases.


c.	The compilation ultimately fails on PPC with complaints such as
	{standard input}:17:no such 386 instruction: ....

	On a DTK, the compilation fails with complaints such as
	{standard input}:68:Invalid memonic ...

Looks like the build system is passing invalid assembly -- perhaps assembly for the wrong architecture -- to the assembler. I'd suggest looking at what's being built. That should tell you what #ifdefs you need to add to your assembly files to ensure that they don't get compiled for the wrong architecture.


Hope this helps,
Eric

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

This email sent to email@hidden
References: 
 >XCode 2.2 & Qt toolkit issues (From: david tay <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.