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: Trying to port from xcode to linux gcc



On Aug 15, 2006, at 7:11 PM, Jeremy Gore wrote:

I wrote a command line application in xcode. Nothing too complex, no mac-specific features as far as I know. When I try to compile on linux using gcc I get a raft of errors, and can find no reason for them.

What are the errors? Mac OS X uses GCC too - what version is on your Linux machine?


Here's what I get on my Debian box:

sherm@debian:~$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c+ +,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with- system-zlib --libexecdir=/usr/lib --without-included-gettext --enable- threads=posix --enable-nls --program-suffix=-4.0 --enable- __cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable- java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/ java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with- tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)


sherm@debian:~/tmp$ gcc -Wall main.c dict.c -o dict
dict.c: In function '_hash':
dict.c:67: warning: suggest parentheses around assignment used as truth value


As you can see, no errors, just one warning that could easily be addressed. I get the same warning using the GCC 4.01 that's included with Tiger's Xcode.

BTW, this is a plain old C question, so I've remove the Objective-C list.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


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

This email sent to email@hidden
References: 
 >Trying to port from xcode to linux gcc (From: Jeremy Gore <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.