Help!I'm a beginner

Discussion in 'Mac Programming' started by cassiopeiait, May 30, 2006.

  1. macrumors newbie

    Joined:
    May 30, 2006
    #1
    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!!
     
  2. macrumors newbie

    Joined:
    May 23, 2006
    #2
    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.
     
  3. thread starter macrumors newbie

    Joined:
    May 30, 2006
    #3
    thank you so much!
     
  4. macrumors newbie

    Joined:
    May 23, 2006
    #4
    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
     
  5. thread starter macrumors newbie

    Joined:
    May 30, 2006
    #5
    me again

    ok.
     
  6. macrumors newbie

    Joined:
    May 23, 2006
    #6
  7. thread starter macrumors newbie

    Joined:
    May 30, 2006
    #7
    ha ha

    Ok.
     
  8. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #8
    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.
     
  9. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #9
    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.
     
  10. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #10
    .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/).
     
  11. thread starter macrumors newbie

    Joined:
    May 30, 2006
    #11
    :confused:
     
  12. macrumors 68020

    yippy

    Joined:
    Mar 14, 2004
    Location:
    Chicago, IL
    #12
    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.
     
  13. macrumors 65816

    MarkCollette

    Joined:
    Mar 6, 2003
    Location:
    Calgary, Canada
    #13
    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 that will make this easier to do.
     

Share This Page