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: -init flag in a converted project



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

msi wrote:
| During build i get the linker warnings:
|
| /usr/bin/ld: warning flag: -init _MyInitRoutine ignored (-dylib was  not
| specified
| /usr/bin/ld: warning specified initialization routine symbol name
| ignored, output file type has no initialization routine
|
|
| Did the way to specify a init routine change with version 2? What did  i
| miss?
|

try using __attribute__((constructor)) which should get the init routine
called, however it seems like it is worth a bug report. There is no reason
for -init not to work with bundles, in my opinion.

Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQsK1HriDAg3OZTLPAQKBVAP/Z4Yxhfm1dSoEtNrzff37SgrflssggBOo
zk/tJcj4q3//pAFl80iFHeCMj0VJHgtPmvAEiVPtc9oH+2oOvnKw6OYQ6Jp/sY4y
PwSPikh6WtEweua4n+ZHTUAzASZj8kypfjzvfP5z6Kow6O28UuFYggEhOP9mIcj3
mjss+wxP6NU=
=19Jk
-----END PGP SIGNATURE-----
_______________________________________________
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: 
 >-init flag in a converted project (From: msi <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.