Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
gcc command not found
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="frike" data-source="post: 740570" data-attributes="member: 52316"><p>It couldn't find it before, but now I copied the contents of /Xcode2.5/usr/bin into usr/bin and now it can find it.</p><p>It still doesn't work though, when I'm trying to compile something (we have to use Eclipse at Uni) I get an error message saying:</p><p></p><p>make all </p><p>Building file: ../src/TestHelloWorld.cpp </p><p>Invoking: GCC C++ Compiler </p><p>g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/TestHelloWorld.d" -MT"src/TestHelloWorld.d" -o"src/TestHelloWorld.o" "../src/TestHelloWorld.cpp" </p><p>../src/TestHelloWorld.cpp:9:20: error: iostream: No such file or directory </p><p>../src/TestHelloWorld.cpp: In function 'int main()': </p><p>../src/TestHelloWorld.cpp:13: error: 'cout' was not declared in this scope </p><p>../src/TestHelloWorld.cpp:13: error: 'endl' was not declared in this scope </p><p>make: *** [src/TestHelloWorld.o] Error 1 </p><p></p><p>which makes me think that just copying the bin contents was not really a solution to my problem. </p><p>How can I set it so Eclipse (and the terminal) can find something that lies in /Xcode2.5?</p></blockquote><p></p>
[QUOTE="frike, post: 740570, member: 52316"] It couldn't find it before, but now I copied the contents of /Xcode2.5/usr/bin into usr/bin and now it can find it. It still doesn't work though, when I'm trying to compile something (we have to use Eclipse at Uni) I get an error message saying: make all Building file: ../src/TestHelloWorld.cpp Invoking: GCC C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/TestHelloWorld.d" -MT"src/TestHelloWorld.d" -o"src/TestHelloWorld.o" "../src/TestHelloWorld.cpp" ../src/TestHelloWorld.cpp:9:20: error: iostream: No such file or directory ../src/TestHelloWorld.cpp: In function 'int main()': ../src/TestHelloWorld.cpp:13: error: 'cout' was not declared in this scope ../src/TestHelloWorld.cpp:13: error: 'endl' was not declared in this scope make: *** [src/TestHelloWorld.o] Error 1 which makes me think that just copying the bin contents was not really a solution to my problem. How can I set it so Eclipse (and the terminal) can find something that lies in /Xcode2.5? [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
gcc command not found
Top