This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/23251] New: Missing Darwin specific '-framework' flag on the gcc/g++ command-line
- From: "jrevans1 at earthlink dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2005 18:32:51 -0000
- Subject: [Bug driver/23251] New: Missing Darwin specific '-framework' flag on the gcc/g++ command-line
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This is a darwin specific flag that is passed to the linker and should be present.
// Begin myTest.cpp
#include <cstdio>
int main(inst argc, char *argv[])
{
printf("Hello World\n");
return 0;
}
// End myTest.cpp
// ====================
// Begin myLog.txt
jrevans%
jrevans% /usr/bin/g++ -o myTest myTest.cpp -framework CoreFoundation
jrevans% ./myTest
Hello World
jrevans% $COTS/bin/g++ -o myTest myTest.cpp -framework CoreFoundation
g++: CoreFoundation: No such file or directory
cc1plus: error: unrecognized command line option "-framework"
jrevans% echo $COTS
/Users/jrevans/local
jrevans%
// End myLog.txt
// ====================
Where gcc was compiled with the following flags:
jrevans% ../gcc-3.4.4/configure --prefix=/Users/jrevans/local --enable-shared
--enable-threads --disable-nls --enable-languages=c,c++,f77
jrevans% make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap
See here for further reference:
http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/IncludingFrameworks.html
--
Summary: Missing Darwin specific '-framework' flag on the gcc/g++
command-line
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jrevans1 at earthlink dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin7.9.0
GCC host triplet: powerpc-apple-darwin7.9.0
GCC target triplet: powerpc-apple-darwin7.9.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23251