PDA

View Full Version : Help!I'm a beginner




cassiopeiait
May 30, 2006, 06:54 AM
fink needs help picking an alternative to satisfy a virtual dependency. The candidates:

(1) db44-aes: Berkeley DB embedded database - crypto
(2) db44: Berkeley DB embedded database - non crypto

Pick one: [1] 2
Can't resolve dependency "gcc4.0 (>= 4.0.1-1)" for package "gmp-4.2.2-1001" (no matching packages/versions found)
Exiting with failure.

Please help!!



Arbiter
May 30, 2006, 06:59 AM
isnt GCC allready installed? Use it thru the xterm. You can use any editor with it, but I recommend one(emacs? nedit? VI?) that supports C++ syntaxes so it is easier to indent(sp?) and read thru the source code.

cassiopeiait
May 30, 2006, 07:02 AM
thank you so much!

Arbiter
May 30, 2006, 07:09 AM
Disregard xterm... I ment the OS X terminal.. it is basically the same thing but when I think xterm I think the terminal that is on linux/unix and/or X11.

The terminal is in Applications_Utilities as far as I know. From there you can compile and run your C++ program. There are a lot of GCC tutorials on the net.

Do you have any experience of terminals? How did you use DEV C++? With cygwin?

This seems to be a good terminal tutorial http://aplawrence.com/MacOSX/macosxshell.html

cassiopeiait
May 30, 2006, 07:14 AM
ok.

Arbiter
May 30, 2006, 07:17 AM
Oops GCC is not installed by default.

http://www.tech-recipes.com/mac_system_administration_tips726.html

You have to register an ADC account, and then you can download it thru apple.com

Registering will just take a few minutes.

edit/ download xcode... That is what you need.

cassiopeiait
Jun 1, 2006, 03:48 AM
Ok.

robbieduncan
Jun 1, 2006, 05:04 AM
Execuatables on a Unix platform (like OSX) do not end in .exe You can add it but it will have no effect! The executable status of a file is controlled by the executable bit of the file permissions. From the terminal type ls -l. x indicates eXexutable.

Code compiled on OSX will not execute on Windows. This is nothing to do with .exe extension but to do with the ABI of the platform. You would need to recompile your code on Windows or use a cross compiler.

Eraserhead
Jun 1, 2006, 05:08 AM
OK. I'VE realized yesterday that there is no GCC in my mac.(i have the iBook at home, but I have normal PC on a work where I can use internet). now I'm downloading the Xcode 2.3 (Disk Image).
But, I wanted to know, when I program in C++ on a Mac, then i will not do .exe files at the end. What files do you get when you program on a Mac?:confused:
That means that the programs I will do, they won't be leggible in windows?
:(

thank you again! :)
Probably .app, no they won't work on Windows... If you need to create windows executables you'll need to program on a Windows PC, it might be worth asking your teacher/lecturer about it.

robbieduncan
Jun 1, 2006, 05:29 AM
Probably .app, no they won't work on Windows... If you need to create windows executables you'll need to program on a Windows PC, it might be worth asking your teacher/lecturer about it.

.app files are actually (well 99% of the time) directories that contain lots of files. The actual executable portion of the app has no extension at all (take a look inside a .app package at Contents/MacOS/).

cassiopeiait
Jun 1, 2006, 06:02 AM
:confused:

yippy
Jun 1, 2006, 06:21 AM
C++ programs that are coded without using any specific Mac or Windows commands (such as a gui) can be compiled on either platform. This means if you take the raw, uncompiled code and compile it on your Mac, the program created will run on Macs. If you take that same uncompiled code but compile it in Windows, it will then run in Windows.

MarkCollette
Jun 1, 2006, 03:39 PM
If you want to learn C++, then you can make console applications on pretty much any computer with GCC, and you can just recompile them on any machine.

But, if you then want to make windows and have buttons and other graphical things, then each computing platform differs quite a bit. But, there are cross platform toolkits, like QT (http://www.trolltech.com/) that will make this easier to do.