-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/12/10 2:42 PM, tech wrote: > Hello, > > I once installed fink gcc4.4, after posting questions here: > > http://www.mail-archive.com/[email protected]/msg25148.html > > Ultimately, I was able to execute g++-4 successfully, either from the > command line or the CodeBlocks IDE. > > With the same setup, I'm still able to successfully build > > /sw/bin/g++-4 -o helloworld main.cpp > > and run the resulting executable. > > However, using the CodeBlocks IDE, with the same program, I ONLY now > run into this problem: > > ||warning: in obj/Debug/main.o, file was built for i386 which is not the > architecture being linked (x86_64)| > ||=== Build finished: 0 errors, 1 warnings ===| > > and in fact the project does not build. The way things are set up, gcc-4 > and g++-4 are the specified compiler executables, > together with the relevant search paths are given : /sw/bin. > > 'make', however, remains the default one (that which comes installed > with OS X 10.6). Again, this set up has worked before, not anymore, in > conjunction with the CodeBlocks IDE. > > Should I install the program 'make' with fink in /sw/bin and have all > the search paths point to that directory? Or can I get away with some > special compiler flags? > > Any suggestion, please? > > >
You're on a 32-bit Fink (according to the link, unless you changed something) and for some reason the CodeBlocks IDE appears to be linking 64-bit stuff as well, and the two don't mix. We see similar errors when packages try to build as 64-bit by default and try to link 32-bit libraries. This normally happens because the Xcode compilers default to 64-bit mode. gcc4.4 hasn't changed since your prior message, and we haven't had any other reports of altered behavior. I'm inclined to think that something has changed in Codeblocks. Is this the _same_ version that used to work for you? - -- Alexander Hansen, Ph.D. Fink User Liaison -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzdnJIACgkQB8UpO3rKjQ8KBQCdHQtnICFuivbC/uRN4aB9VfGH Y6AAnR1iZeTaB018GT1e3QrQUI+FTLly =F6XK -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Fink-beginners mailing list [email protected] http://news.gmane.org/gmane.os.apple.fink.beginners
