Author Topic: Build error on Mac.  (Read 6560 times)

SuperCamMan

  • Guest
Build error on Mac.
« on: March 09, 2011, 04:02:40 am »
Hello, I was hoping somebody could help me with this problem I'm having.
I use to use CodeBlocks on my old Windows XP computer but recently I switched to a Mac and obviously I downloaded CodBlocks (10.05) again so I could continue learning C++. The installation went smoothly but the problem is whenever I try to Build/Run something I get this error message in the build log:

""*Project Name* - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done."

If I change the "Build target:" to Release it does the same thing:

""*Project Name* - Release" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done."

It even says this with the default "Hello world!" program. I'm sure this is just a simple directory problem or something but I'm still pretty new at this stuff (as I mentioned before, I'm still just learning C++).

My computer is a MacBook Pro Intel OS X 10.6 Snow Leopard.
I used the Console Application templet with the GNU GCC compiler (I tried it with the "Intel C/C++" compiler but it didn't fix the problem).

Any help would be greatly appreciated and I hope I'm posting this in the appropriate forum.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Build error on Mac.
« Reply #1 on: March 09, 2011, 02:08:06 pm »
Did YOU install a Compiler?
Edit: This might be the right directions: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Install_Developer_Tools

Code::Blocks IS NOT a Compiler!

Tim S.
« Last Edit: March 09, 2011, 05:47:43 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

blackcavy140

  • Guest
Re: Build error on Mac.
« Reply #2 on: May 28, 2011, 05:27:38 pm »
k im having the same issue, i went to the wiki site and to the GNU compiler site and I don't know what to click on to download the compiler.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Build error on Mac.
« Reply #3 on: May 28, 2011, 06:03:33 pm »
Search Apple's site for XCode or something like that.
The compiler gcc/g++ is provided by Apple, not GNU/FSF
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Build error on Mac.
« Reply #4 on: May 28, 2011, 07:25:57 pm »
XCode3 is supposed to be free. XCode4 costs money.

I am NOT a Mac person; so, I only know what Wikipedia says.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org