[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: infos on compiler flag
From: |
Paul Johnson |
Subject: |
Re: infos on compiler flag |
Date: |
Wed, 11 Sep 2002 17:09:23 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606 |
I don't know what what you are referring to by "my" flags. The gcc guys
just say to add the flag -fgnu-runtime.
Looking in the main.m file in the Obj-C hello world package I mentioned
earlier, I am reminded that I provide the gcc command:
gcc -o test -Wno-import main.m Printer.m -lobjc -lpthread
I have no trouble compiling the program if I add -fgnu-runtime in there.
$ gcc3 -o test -Wno-import -fgnu-runtime main.m Printer.m -lobjc -lpthread
results in a working program for me. The -lpthread option is not
required on my system, but it is necessary for gcc-2.95.
Perrone Alessandro wrote:
Hi Paul
Here the result of the compilation using your "flags"
--
[localhost:~/objc-sample] alex% ls
README main.m printer.h printer.m test
[localhost:~/objc-sample] alex% gcc -g -fgnu-runtime -O -c main.m
printer.m -o test
gcc: cannot specify -o with -c or -S and multiple compilations
[localhost:~/objc-sample] alex% gcc3 -g -fgnu-runtime -O -c main.m
printer.m -o test
gcc3: cannot specify -o with -c or -S and multiple compilations
[localhost:~/objc-sample] alex% gcc32 -g -fgnu-runtime -O -c main.m
printer.m -o test
gcc32: cannot specify -o with -c or -S and multiple compilations
[localhost:~/objc-sample] alex%
---
Regards.
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ku.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.