Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 15th, 2006, 9:37 AM   #1
Baphomet
Retired Programmer
 
Baphomet's Avatar
 
Join Date: Jul 2006
Posts: 45
Rep Power: 0 Baphomet is on a distinguished road
C++ Programming on Macs from Windows?

I need an IDE (or a way to make a current IDE) for Windows that can develop and test programs for macs without using a cross compatable toolkit. It needs to develop exclusivly for mac (if its a toolkit).
Baphomet is offline   Reply With Quote
Old Nov 15th, 2006, 2:06 PM   #2
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
What do you mean by "exclusivly for mac", the only way you can do that without using a Mac is by using C++ libraries which run on the Mac as well as windows. Then just compile you program on a Mac and hope it works. You can't develope using Cocoa and Carbon or any other mac technology unless you are on a mac.
Game_Ender is offline   Reply With Quote
Old Nov 15th, 2006, 2:12 PM   #3
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
You also cannot compile any executables for a PPC architecture on a Intel Processor, nor can you compile for a Dual Core on a Pentium without using cross compiling tools.
If you're getting a contract for some Mac work, it might be wise to invest in a mac, just for compiling/QA purposes.
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote
Old Nov 16th, 2006, 8:23 AM   #4
Baphomet
Retired Programmer
 
Baphomet's Avatar
 
Join Date: Jul 2006
Posts: 45
Rep Power: 0 Baphomet is on a distinguished road
I did want to have to use cross toolkits. But if I must...
Baphomet is offline   Reply With Quote
Old Nov 16th, 2006, 8:33 AM   #5
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
well, there is no other way to compile binaries that will run on a different processor type.
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote
Old Nov 16th, 2006, 9:40 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Perhaps you don't understand the situation. Microprocessors of differing type have different hardware circuitry. Some of the signals to drive these circuits are provided by software (machine code), along with some internal microcode. Machine code is produced by higher languages, such as assembler (generally very direct, often a direct mapping to machine code), as well as more abstract languages such as C, Fortran, you name it. These languages are tailored for a specific platform and ultimately emit machine code for the processor (even if via a virtual machine). Codes emitted for a given processor will not run on a non-compatible processor. This is the reason for cross-platform tools. It is also a reason for the existence of VMs, which do the "crossing" for you. The VMs, of course, have to be written for specific processors, also.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 16th, 2006, 2:29 PM   #7
niteice
Programmer
 
niteice's Avatar
 
Join Date: Aug 2005
Posts: 98
Rep Power: 4 niteice is on a distinguished road
Send a message via AIM to niteice
You can, in theory, build a cross gcc (targeting something like i686-apple-darwin) that runs inside MinGW, but as noted, it's probably a lot easier to get a Mac.
niteice is offline   Reply With Quote
Old Nov 16th, 2006, 3:08 PM   #8
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
Why do you need to develop for a Mac when you don't own one? I am just curious.
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Nov 16th, 2006, 3:14 PM   #9
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 751
Rep Power: 3 Jimbo is on a distinguished road
Quote:
Originally Posted by niteice View Post
You can, in theory, build a cross gcc (targeting something like i686-apple-darwin) that runs inside MinGW, but as noted, it's probably a lot easier to get a Mac.
But it could be more cost effective to set up cross-compiling... at least until you need to test it... :beard:

Quote:
Originally Posted by reggaeton_king
Why do you need to develop for a Mac when you don't own one? I am just curious.
Not everybody writes only for their own machines
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote
Old Nov 16th, 2006, 3:31 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
Not everybody writes only for their own machines
Amen. Probably 80-90 percent of the machines consuming clock-cycles are not like one's own.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ windows programming msk420 C++ 13 May 25th, 2006 3:06 AM
Windows Programming jobobshishkabob C++ 6 Feb 19th, 2006 6:24 PM
Windows Programming mackenga Other Programming Languages 10 May 20th, 2005 5:11 AM
Help with finding windows programming books some1 C++ 11 Feb 9th, 2005 9:19 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:50 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC