You are here

Rosetta 3.4 on Mac OS v. 10.8.2

3 posts / 0 new
Last post
Rosetta 3.4 on Mac OS v. 10.8.2

Thanks all the help, yes, something wrong with gcc-4.2 or/and g++-4.2, after reinstall Xcode and symlink as below, problem solved.

1. sudo ln -s /usr/bin/g++ /usr/bin/g++-4.2
2. sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2


Post Situation: 
Tue, 2013-03-19 00:00

This one doesn't reproduce on developer hardware (or we wouldn't have left it in) - a person who works with this code suggests "On my mac (10.7.5), I've got gcc 4.2 and clang 3.1, can they try it with either of these compilers?"

Tue, 2013-03-19 11:14

The error messages indicate that the error is from compiling a C file as a C++ file. My best guess is that there's something off with your compiler installation. gcc should autodetermine the file type, but if it was symlinked or otherwise linked to g++, that might not work appropriately.

What do the following commands print?

which gcc-4.2
which g++-4.2

If you could do an "ls -l" on both of the output paths, that would be helpful too.

Tue, 2013-03-19 11:23