Error!!!
  #1 (permalink)  
Old 09-05-2008, 08:14 PM
NayNay33 NayNay33 is offline
Junior Member
 
Join Date: Sep 2008
Posts: 1
Default Error!!!

Ok so here is my code:

# include <iostream>

using namespace std;
int main()
{
const float fahrenheit = 72.0;
const float celsius = (5.0 / 9.0) * (fahrenheit - 32.0);

cout << celsius << endl;

return (0);
}

When I click build and go I get this error:
command/developer/usr/bin/g++-4.0 failed with exit code 1 duplicate symbol_main in


Any help will be appreciated
Reply With Quote

  #2 (permalink)  
Old 09-10-2008, 09:39 PM
Nicod3mus Nicod3mus is offline
Administrator
 
Join Date: Jun 2008
Posts: 3
Default

I have forwarded this to Jon and he will reply soon....welcome to the boards.
Reply With Quote

  #3 (permalink)  
Old 09-11-2008, 08:45 PM
jon jon is offline
Administrator
 
Join Date: Jun 2008
Location: Colorado
Posts: 19
Default

Cout won't work on the iphone, try starting with one of iphone app templates apple lets you use.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump



All times are GMT. The time now is 09:19 PM.


vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0 Beta 1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27