|
Until you sign up you can't do much. Yes, it's free.
|
|
|
|
|
|
|
 | / / / Viewing Topic
|  |
|
|
|
|
 LiveWire Humor
|
|
Angel Of Death1337
Dairy Product Addict
|
What do you mean a C++?
------- Constant over-stimulation Numbs me I would not want you any other way
|
|
|
Acathrines1
Dairy Product Addict
Patron
|
what
------- R~I~P Josh, I will love u forever. ICP LETTE 4 LIFE!!! ~Love You Forever Zack~
|
|
|
|
|
Angel Of Death1337
Dairy Product Addict
|
Oh well you see mac sucks ass
------- Constant over-stimulation Numbs me I would not want you any other way
|
|
|
|
|
|
|
( ana )
Guru
Patron
|
the codes fine and everything i had my geek check it for me but it keeps comming up with errors when i put 'cin' or anything like that!
------- Roses are #FF0000 Violets are #0000FF I am a geek And so are you
|
8:45 am on June 18, 2005 | Joined: May 2005 | Days Active: 559 Join to learn more about ana England, United Kingdom | Straight Female | Posts: 5,955 | Points: 21,511
|
|
| |
|
|
|
|
( ana )
Guru
Patron
|
its really long but i have tested it on a PC its my f-ing mac! *throws it out the window*.
------- Roses are #FF0000 Violets are #0000FF I am a geek And so are you
|
8:55 am on June 18, 2005 | Joined: May 2005 | Days Active: 559 Join to learn more about ana England, United Kingdom | Straight Female | Posts: 5,955 | Points: 21,511
|
|
| |
|
|
|
|
( ana )
Guru
Patron
|
yeh i was fine when i tried it at work. the compiler i have is xtools or xcode which came on here...
------- Roses are #FF0000 Violets are #0000FF I am a geek And so are you
|
9:11 am on June 18, 2005 | Joined: May 2005 | Days Active: 559 Join to learn more about ana England, United Kingdom | Straight Female | Posts: 5,955 | Points: 21,511
|
|
| |
|
|
Duekiller
Dairy Product Addict
|
Sorry to tell you this so late, but your problem is that the libaray that defines cin, is not on the mac because macs have diffrent libraries and shit so you need to grab the mac library (remember C++ is translated into ASSEMBER and then into machine code)
------- Some days I am the dog, Some days I am the hydrant. In either case the sun shines in my face.
|
|
|
helloworld
Visionary
Patron
|
Quote: from Duekiller at 1:35 pm on July 5, 2005
Sorry to tell you this so late, but your problem is that the libaray that defines cin, is not on the mac because macs have diffrent libraries and shit so you need to grab the mac library (remember C++ is translated into ASSEMBER and then into machine code)
What the hell are you talking about? Mac OS X is Unix. Any decent Unix system ships with all the standard ISO C++ libraries. Mac OS X has done so from day 1. The Xcode developer tools ship with all the associated headers and the GNU compiler tools. If you have the tools installed, you can compile anything that is standard ISO C++. | Code: | #include <iostream> using namespace std; int main( void ) { int x; cout << "Test"; cin >> x; cout << x; return 0; } | Works fine for me. Stick it in a cpp file, run g ++ on it and, boom, done. (Edited by helloworld at 3:22 pm on July 17, 2005)
|
|
|
Duekiller
Dairy Product Addict
|
Quote: from helloworld at 3:20 pm on July 17, 2005
Quote: from Duekiller at 1:35 pm on July 5, 2005
Sorry to tell you this so late, but your problem is that the libaray that defines cin, is not on the mac because macs have diffrent libraries and shit so you need to grab the mac library (remember C++ is translated into ASSEMBER and then into machine code)
What the hell are you talking about? Mac OS X is Unix. Any decent Unix system ships with all the standard ISO C++ libraries. Mac OS X has done so from day 1. The Xcode developer tools ship with all the associated headers and the GNU compiler tools. If you have the tools installed, you can compile anything that is standard ISO C++. | Code: | #include <iostream> using namespace std; int main( void ) { int x; cout << "Test"; cin >> x; cout << x; return 0; } | Works fine for me. Stick it in a cpp file, run g ++ on it and, boom, done. (Edited by helloworld at 3:22 pm on July 17, 2005) 
Macs use the powerPC architecture and that has diffrent machine instruction codes, meaning that macs will have diffrent binary codes. That is why you cant install windows on a Mac. If you have the windows library then you need the mac specific library.
------- Some days I am the dog, Some days I am the hydrant. In either case the sun shines in my face.
|
|
|
|
| Looking for something else?
|
|
|
|
|
|
 | / / / Viewing Topic |  |
|